about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-05-21 16:20:54 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-05-21 16:20:54 +0000
commitc7a2d2225e41e38f54ace2809fd61d3867fdd43b (patch)
treed4b27fc1e5b51773c0062c60b76eb88e07fe4085 /Test/D04parameter.ztst
parent6d9135befe12593ebc756cc7608d241cb892d096 (diff)
downloadzsh-c7a2d2225e41e38f54ace2809fd61d3867fdd43b.tar.gz
zsh-c7a2d2225e41e38f54ace2809fd61d3867fdd43b.tar.xz
zsh-c7a2d2225e41e38f54ace2809fd61d3867fdd43b.zip
18565: bug when ${(u)...} reduced array to length 1
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 3327caf9d..5700a0722 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -589,3 +589,13 @@
 0:Parameters associated with (#m) flag
 >MATCH 16 20 MATCH
 >5
+
+  print -l JAMES${(u)${=:-$(echo yes yes)}}JOYCE
+  print -l JAMES${(u)${=:-$(echo yes yes she said yes i will yes)}}JOYCE
+0:Bug with (u) flag reducing arrays to one element
+>JAMESyesJOYCE
+>JAMESyes
+>she
+>said
+>i
+>willJOYCE