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:36 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-08-22 11:43:36 +0000
commit635b405c5586cf5a383b0a8d8a8de6c64db6318d (patch)
treea275c449e5ab6a9ecf8709be9310679fc94a95a9 /Test/D04parameter.ztst
parent7df83c6a1c5304506c2fd7d0444ad567493da719 (diff)
downloadzsh-635b405c5586cf5a383b0a8d8a8de6c64db6318d.tar.gz
zsh-635b405c5586cf5a383b0a8d8a8de6c64db6318d.tar.xz
zsh-635b405c5586cf5a383b0a8d8a8de6c64db6318d.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 7a6254300..3ad19368d 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]]