about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-03-23 21:01:59 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-03-23 21:01:59 +0000
commite78ec8610d16732e566526ceb1d513d71ccf942b (patch)
tree987354530748fd218b8e9c54f544b60323a1fc78 /Test
parent086656241c3ccca377474bfea1cb269ac9a67d60 (diff)
downloadzsh-e78ec8610d16732e566526ceb1d513d71ccf942b.tar.gz
zsh-e78ec8610d16732e566526ceb1d513d71ccf942b.tar.xz
zsh-e78ec8610d16732e566526ceb1d513d71ccf942b.zip
40891: fix more zero-length matches.
This time at the end of the trial string.
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 99f7dd91a..66d9022e2 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -2158,3 +2158,13 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
 >x
 >x
 >y
+
+  a=(1 "" 3)
+  print -rl -- "${(@)a//#%*/x}"
+  a=""
+  print -rl -- "${(@)a//#%*/y}"
+0:Zero-length string match at end
+>x
+>x
+>x
+>y