about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-01-22 16:28:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-01-22 16:28:58 +0000
commit44757a653cb547ae7b556e8c92629d296d3c1f12 (patch)
tree78e92732187aec860cce73a54a3d737c50b25df2 /Test/D04parameter.ztst
parent27c5a0d7744ffeaf677b097adbe9a094a3a49025 (diff)
downloadzsh-44757a653cb547ae7b556e8c92629d296d3c1f12.tar.gz
zsh-44757a653cb547ae7b556e8c92629d296d3c1f12.tar.xz
zsh-44757a653cb547ae7b556e8c92629d296d3c1f12.zip
30993: fix parameter modifier crash with :wq on empty string
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 01f841218..bea945971 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1544,3 +1544,10 @@
 0:Regression test for shwordsplit with null or unset IFS and quoted array
 >abc
 >a b c
+
+   foo=
+   print ${foo:wq}
+   print ${:wq}
+0:Empty parameter shouldn't cause modifiers to crash the shell
+>
+>