about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-08-22 11:43:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-08-22 11:43:58 +0000
commit2fb1a9f13c0c465c41d8c08366fb8c41dccf2880 (patch)
tree1dfd3bd93762f67168e4383bbcf35b94bd93ca53 /Test/D04parameter.ztst
parent50826130a47ba331306f479187d689bcf06f9e2c (diff)
downloadzsh-2fb1a9f13c0c465c41d8c08366fb8c41dccf2880.tar.gz
zsh-2fb1a9f13c0c465c41d8c08366fb8c41dccf2880.tar.xz
zsh-2fb1a9f13c0c465c41d8c08366fb8c41dccf2880.zip
21678: Unsetting tied parameters caused various crashes
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst34
1 files changed, 34 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 7f2ed4670..6623ebd24 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -568,6 +568,40 @@
 >0
 >/elsewhere /somewhere
 
+  local STRING=a:b
+  typeset -T STRING string
+  print $STRING $string
+  unset STRING
+  set -A string x y z
+  print $STRING $string
+  STRING=a:b
+  typeset -T STRING string
+  print $STRING $string
+  unset STRING
+  set -A string x y z
+  print $STRING $string
+  STRING=a:b
+  typeset -T STRING string
+  print $STRING $string
+  unset string
+  STRING=x:y:z
+  print $STRING $string
+  STRING=a:b
+  typeset -T STRING string
+  print $STRING $string
+  unset string
+  STRING=x:y:z
+  print $STRING $string
+0:Unsetting and recreation of tied normal parameters
+>a:b a b
+>x y z
+>a:b a b
+>x y z
+>a:b a b
+>x:y:z
+>a:b a b
+>x:y:z
+
   string='look for a match in here'
   if [[ ${string%%(#b)(match)*} = "look for a " ]]; then
     print $match[1] $mbegin[1] $mend[1] $string[$mbegin[1],$mend[1]]