diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2005-02-09 16:26:03 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2005-02-09 16:26:03 +0000 |
commit | 8acdfd29816b8c7c053e0c2509105450ddb4709c (patch) | |
tree | 4b40510b5805e94c3553b5640686209b0ddd41f6 | |
parent | aaec0ef0ad70c520e803727fba8f18a28c14fe59 (diff) | |
download | zsh-8acdfd29816b8c7c053e0c2509105450ddb4709c.tar.gz zsh-8acdfd29816b8c7c053e0c2509105450ddb4709c.tar.xz zsh-8acdfd29816b8c7c053e0c2509105450ddb4709c.zip |
Kris Shannon: 20801: fix missing $ in expression to parse script
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_init_d | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index a676edf89..dabd384fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-09 Bart Schaefer <schaefer@zsh.org> + + * Kris Shannon: 20801: Completion/Unix/Command/_init_d: fix + missing $ in the param expansion that parses the init script. + 2005-02-07 Peter Stephenson <pws@csr.com> * 20798: Src/init.c: need to propagate some #ifdef's to get diff --git a/Completion/Unix/Command/_init_d b/Completion/Unix/Command/_init_d index f081244af..f439e8007 100644 --- a/Completion/Unix/Command/_init_d +++ b/Completion/Unix/Command/_init_d @@ -15,7 +15,7 @@ script=$words[1] what='(st(art|op|atus)|(force-|)re(start|load)|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... |