diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2011-08-14 13:40:53 +0000 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2011-08-14 13:40:53 +0000 |
commit | 20c52f622154ed00fac8ed3cf6416e955551d372 (patch) | |
tree | 60df4353bc9e9db78b97f62bc0144cf0f9948fd8 /Functions/Misc/zargs | |
parent | 7142697448656b473f84607626122215661b525b (diff) | |
download | zsh-20c52f622154ed00fac8ed3cf6416e955551d372.tar.gz zsh-20c52f622154ed00fac8ed3cf6416e955551d372.tar.xz zsh-20c52f622154ed00fac8ed3cf6416e955551d372.zip |
28852: Use syntax that doesn't depend on SHORT_LOOPS being set.
Diffstat (limited to 'Functions/Misc/zargs')
-rw-r--r-- | Functions/Misc/zargs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Misc/zargs b/Functions/Misc/zargs index 58d84617e..8350b1aba 100644 --- a/Functions/Misc/zargs +++ b/Functions/Misc/zargs @@ -207,7 +207,7 @@ then else call=($command) # Use "repeat" here so "continue" won't complain. - repeat 1 eval "$execute ; $analyze" + repeat 1; do eval "$execute ; $analyze"; done return $ret fi fi @@ -273,7 +273,7 @@ do repeat $P do ((ARGC)) || break - for (( end=l; end && ${(c)#argv[1,end]} > s; end/=2 )) : + for (( end=l; end && ${(c)#argv[1,end]} > s; end/=2 )) { } (( end > n && ( end = n ) )) args=( $argv[1,end] ) shift $((end > ARGC ? ARGC : end)) |