From 75cafccc0a11493ce669a6372d57ef89a801b189 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 31 May 2015 16:39:22 +0100 Subject: 35343: Avoid $#name length handling for POSIX_IDENTIFIERS --- Test/D04parameter.ztst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Test/D04parameter.ztst') 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 -- cgit 1.4.1