Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Typo in _init_d
- X-seq: zsh-workers 20801
- From: Kris Shannon <kris.shannon@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: Typo in _init_d
- Date: Tue, 8 Feb 2005 16:42:19 +1100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=VGcE+8SAwlGk8rYgHj6rexzModjkSOLbHXbul+j/mYV5cXyq4X+I3LDVDfrAor1ftAad/xf6EEVFCmog3PVXluA+eO1O8OsLRlvsjtsDIJMRbBkZ3evA9xg4C6zI3eYFpqVB//gQKVi0xhTPbmjrewksWQ3uO350L1MMQla+PWw=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Kris Shannon <kris.shannon@xxxxxxxxx>
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