1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

unposted: improve recognition of parameter arguments in zmathfuncdef

This commit is contained in:
Peter Stephenson 2006-04-23 22:47:01 +00:00
parent 7932a719c3
commit 9b844cfe73
2 changed files with 6 additions and 1 deletions

View file

@ -23,7 +23,7 @@ integer iarg=0 ioptarg
local body=$2
# count compulsory arguments
while [[ $body = *'$'$((iarg+1))(|[^[:digit:]]*) ]]; do
while [[ $body = *'$'(\{|)$((iarg+1))(|[^:[:digit:]]*) ]]; do
(( iarg++ ))
done