From f41d769adc69b180ac368e01814cbd6b0d2c3e79 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 8 Oct 2007 08:40:12 +0000 Subject: arno: 23910: spaces in cases in init script --- 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 2443febe3..9a5ed9ae7 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}([[:blank:]]#\|[[:blank:]]#${~what})#(\'|)\)}}//[^-a-z_]} ) # This would be the pattern to use every line of the form foo). # Some people say this might match too many lines... -- cgit 1.4.1