mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
18519: use of read builtin was broken in changes to option parsing
This commit is contained in:
parent
78b02d9c03
commit
68dc356896
@ -1,3 +1,8 @@
|
||||
2003-05-12 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 18519: Completion/Unix/Command/_init_d: was broken due to
|
||||
changes in option parsing for the read builtin
|
||||
|
||||
2003-05-08 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 18512: README, Completion/Unix/Command/_cvs,
|
||||
|
@ -14,7 +14,7 @@ script=$words[1]
|
||||
|
||||
what='(st(art|op|atus)|(force-|)re(start|load)|debug_(up|down)|dump(|_stats)|add|delete|clean|list)'
|
||||
|
||||
read -u0k 2 magic < $script && [[ $magic = '#!' ]] &&
|
||||
read -u0 -k2 magic < $script && [[ $magic = '#!' ]] &&
|
||||
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).
|
||||
|
Loading…
Reference in New Issue
Block a user