Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Typo in _init_d



The _init_d completion function is missing a $ before {~what}

--- Completion/Unix/Command/_init_d     2003-05-12 20:10:51.000000000 +1100
+++ Completion/Unix/Command/_init_d     2005-02-08 16:27:27.000000000 +1100
@@ -15,7 +15,7 @@
 what='(st(art|op|atus)|(force-|)re(start|load)(|-modules)|debug_(up|down)|dump(|_stats)|add|delete|clean|list)'

 read -u0 -k2 magic < $script && [[ $magic = '#!' ]] &&
-    cmds=( ${${(j:|:s:|:)${(M)${(f)"$(<
$script)"}:#[[:blank:]]#(\'|)${~what}(\|{~what})#(\'|)\)}}//[^a-z_-]}
)
+    cmds=( ${${(j:|:s:|:)${(M)${(f)"$(<
$script)"}:#[[:blank:]]#(\'|)${~what}(\|${~what})#(\'|)\)}}//[^a-z_-]}
)

 # This would be the pattern to use every line of the form <space>foo).
 # Some people say this might match too many lines...



Messages sorted by: Reverse Date, Date, Thread, Author