[issue354] grml-etc-core: standarized use of double brackets for tests in zsh config files
Alexander Steinböck
bts at bts.grml.org
Mon Dec 3 22:45:07 CET 2007
New submission from Alexander Steinböck <stone_henge at web.de>:
Standarized the use of brackets - double instead of single ones -
for test situations like if-clauses.
For info, see http://zsh.dotsrc.org/Guide/zshguide02.html#l8 , last
paragraph.
Furthermore several cases of 'if [[..]]; then` where changed to the
otherwise used form 'if [[..]] ; then`.
Oneliners used:
% sed -i 's,\]\;\( then\),\] ;\1,' etc/{skel,zsh}/.#z*
% sed -i 's,[^\["]\(\[ \+[-!"$]\+\), [\1,g;s,\( ]\)\([ ;]\+\),\1]\2,g' etc/{skel,zsh}/.#z*
I checked the result several times. I really hope I did not miss any
false positive.
----------
assignedto: ft
files: grml-etc-core-semicolon-doublebrackets.patch
messages: 967
nosy: ft, mika, z3ttacht
priority: feature
status: unread
title: grml-etc-core: standarized use of double brackets for tests in zsh config files
_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue354>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grml-etc-core-semicolon-doublebrackets.patch
Type: text/x-diff
Size: 41628 bytes
Desc: not available
Url : http://ml.grml.org/pipermail/bugs-changes/attachments/20071203/f8b67ef5/attachment.patch
More information about the Bugs-changes
mailing list