From 68dc356896430675c1717f3b2f27e6e42a5a1775 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 12 May 2003 10:10:44 +0000 Subject: 18519: use of read builtin was broken in changes to option parsing --- Completion/Unix/Command/_init_d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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 foo). -- cgit 1.4.1