diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-06-26 18:17:31 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-06-26 18:17:31 +0000 |
commit | 05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a (patch) | |
tree | 83bce93bdd4b624397b0b24ac42b1848ce71a9e9 /Test | |
parent | bd50a3c516f3e19c444c40987e657d1be78583c0 (diff) | |
download | zsh-05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a.tar.gz zsh-05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a.tar.xz zsh-05bd0b2dd1efabeda472cb2f9a675a7269d4cf6a.zip |
22518: Initial go at making parameter subscripts
use multibyte characters.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B02typeset.ztst | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst index fc9d9c161..bbc00a2ea 100644 --- a/Test/B02typeset.ztst +++ b/Test/B02typeset.ztst @@ -182,13 +182,26 @@ >l o c a l >l:o:c:a l o c a + (setopt NO_multibyte cbases + LC_ALL=C 2>/dev/null typeset -T SCALAR=$'l\x83o\x83c\x83a\x83l' array $'\x83' print $array typeset -U SCALAR - print $SCALAR $array + for (( i = 1; i <= ${#SCALAR}; i++ )); do + char=$SCALAR[i] + print $(( [#16] #char )) + done + print $array) 0:Tied parameters and uniquified arrays with meta-character as separator >l o c a l ->lƒoƒcƒa l o c a +>0x6C +>0x83 +>0x6F +>0x83 +>0x63 +>0x83 +>0x61 +>l o c a typeset -T SCALAR=$'l\000o\000c\000a\000l' array $'\000' typeset -U SCALAR |