diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2006-04-23 22:47:01 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-04-23 22:47:01 +0000 |
| commit | 9b844cfe738ba9dad19d9df3e6ca63e4dba78e61 (patch) | |
| tree | 0925cbf5daf188c68206590d64ad7839c30f8b56 | |
| parent | Francisco Borges: users/10162: updated _aptitude. (diff) | |
| download | zsh-9b844cfe738ba9dad19d9df3e6ca63e4dba78e61.tar zsh-9b844cfe738ba9dad19d9df3e6ca63e4dba78e61.tar.gz zsh-9b844cfe738ba9dad19d9df3e6ca63e4dba78e61.tar.bz2 zsh-9b844cfe738ba9dad19d9df3e6ca63e4dba78e61.tar.lz zsh-9b844cfe738ba9dad19d9df3e6ca63e4dba78e61.tar.xz zsh-9b844cfe738ba9dad19d9df3e6ca63e4dba78e61.tar.zst zsh-9b844cfe738ba9dad19d9df3e6ca63e4dba78e61.zip | |
unposted: improve recognition of parameter arguments in zmathfuncdef
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Functions/Misc/zmathfuncdef | 2 |
2 files changed, 6 insertions, 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. diff --git a/Functions/Misc/zmathfuncdef b/Functions/Misc/zmathfuncdef index 9ecfcdd82..0a099300f 100644 --- a/Functions/Misc/zmathfuncdef +++ b/Functions/Misc/zmathfuncdef @@ -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 |
