summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-05-31 16:39:22 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-05-31 16:40:14 +0100
commit75cafccc0a11493ce669a6372d57ef89a801b189 (patch)
tree77e67b3a4615a1be3b465a1900bd56aa6c133fb0 /Test
parent911edc5ea475bdf679feee7c800369d8285c263d (diff)
downloadzsh-75cafccc0a11493ce669a6372d57ef89a801b189.tar.gz
zsh-75cafccc0a11493ce669a6372d57ef89a801b189.tar.xz
zsh-75cafccc0a11493ce669a6372d57ef89a801b189.zip
35343: Avoid $#name length handling for POSIX_IDENTIFIERS
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst9
1 files changed, 6 insertions, 3 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index c41e05ed3..d06a73afd 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1704,7 +1704,10 @@
   [[ $funnychars = ${~${(b)funnychars}} ]]
 0:${(b)...} quoting protects from GLOB_SUBST
 
-  set --
-  print $#-1
-0:Avoid confusion after overloaded characters in braceless substitution
+  set -- foo
+  echo $(( $#*3 ))
+  emulate sh -c 'nolenwithoutbrace() { echo $#-1; }'
+  nolenwithoutbrace
+0:Avoid confusion after overloaded characters in braceless substitution in sh
+>13
 >0-1