about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-08-17 19:00:08 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-08-17 19:00:08 +0000
commit815e52cdbf0a62bf795d5af8e7089aaca5709806 (patch)
treeecc5703b2ecc51cc2db7f29e71662a9549dbfda5 /Test/D04parameter.ztst
parent5bbedb3df35aaa0cb72882674f50eb89f8d30a7b (diff)
downloadzsh-815e52cdbf0a62bf795d5af8e7089aaca5709806.tar.gz
zsh-815e52cdbf0a62bf795d5af8e7089aaca5709806.tar.xz
zsh-815e52cdbf0a62bf795d5af8e7089aaca5709806.zip
users/16253, users/16255: a nulstring should be split like an empty string
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 8f95420dd..71c79687f 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1453,3 +1453,8 @@
    print ${foo:5:-6}
 1:Regression test for total length < 0 in array
 ?(eval):2: substring expression: 3 < 5
+
+   foo=(${(0)"$(print -n)"})
+   print ${#foo}
+0:Nularg removed from split empty string
+>0