about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/zmathfuncdef2
1 files changed, 1 insertions, 1 deletions
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