mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 20:40:57 +02:00
unposted: improve recognition of parameter arguments in zmathfuncdef
This commit is contained in:
parent
7932a719c3
commit
9b844cfe73
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-04-23 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* unposted: Functions/Misc/zmathfuncdef: improve recognition
|
||||
of parameter expansions.
|
||||
|
||||
2006-04-23 Clint Adams <clint@zsh.org>
|
||||
|
||||
* Francisco Borges: users/10162: updated _aptitude.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue