about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-05-12 10:10:44 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-05-12 10:10:44 +0000
commit68dc356896430675c1717f3b2f27e6e42a5a1775 (patch)
tree2b0fa6aab8b95fd1ce2d65543f43475c64bb681e
parent78b02d9c036f6b0e0ec7896729a090ec7ccc7a5f (diff)
downloadzsh-68dc356896430675c1717f3b2f27e6e42a5a1775.tar.gz
zsh-68dc356896430675c1717f3b2f27e6e42a5a1775.tar.xz
zsh-68dc356896430675c1717f3b2f27e6e42a5a1775.zip
18519: use of read builtin was broken in changes to option parsing
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_init_d2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5128156c2..d69f31150 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/Completion/Unix/Command/_init_d b/Completion/Unix/Command/_init_d
index cf389bff9..f081244af 100644
--- a/Completion/Unix/Command/_init_d
+++ b/Completion/Unix/Command/_init_d
@@ -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).