summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-09-17 09:25:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-09-17 09:25:38 +0000
commit037485c4a474395064e2b5b1da281ca052796320 (patch)
tree7033c03726ddf0a3891b99b741e56a04ab93e388 /Test
parent53383c33b80061c8d651dde7e554d68395b48899 (diff)
downloadzsh-037485c4a474395064e2b5b1da281ca052796320.tar.gz
zsh-037485c4a474395064e2b5b1da281ca052796320.tar.xz
zsh-037485c4a474395064e2b5b1da281ca052796320.zip
20378: Matthias B.: fix bugs joining with metafied chars.
Diffstat (limited to 'Test')
-rw-r--r--Test/B02typeset.ztst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst
index 3a35b0467..752a8e94a 100644
--- a/Test/B02typeset.ztst
+++ b/Test/B02typeset.ztst
@@ -183,6 +183,21 @@
 >l o c a l
 >l:o:c:a l o c a
 
+ typeset -T SCALAR=$'l\x83o\x83c\x83a\x83l' array $'\x83'
+ print $array
+ typeset -U SCALAR
+ print $SCALAR $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
+
+ typeset -T SCALAR=$'l\000o\000c\000a\000l' array $'\000'
+ typeset -U SCALAR
+ print $array
+ [[ $SCALAR == $'l\000o\000c\000a' ]]
+0:Tied parameters and uniquified arrays with NUL-character as separator
+>l o c a
+
  typeset -T SCALAR array
  typeset +T SCALAR
 1:Untying is prohibited