about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-04-16 11:26:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-04-16 11:26:09 +0000
commit4f142f279468a2d2d2500555e00649db9e74836f (patch)
tree52943ca2fc0fd668cf5bfeb18f0f16d11b109d11 /Test
parent3dbb6723abcdcc41efef541c5b358c8e2df2da9a (diff)
downloadzsh-4f142f279468a2d2d2500555e00649db9e74836f.tar.gz
zsh-4f142f279468a2d2d2500555e00649db9e74836f.tar.xz
zsh-4f142f279468a2d2d2500555e00649db9e74836f.zip
30413: (q-) parameter flag should quote null string
(q-q) etc. should be treated as errors
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index cc2d6aecd..30e4ba0ab 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -385,6 +385,13 @@
 >$'playing \'stupid\' "games" \\w\\i\\t\\h $quoting.'
 >'playing '\'stupid\'' "games" \w\i\t\h $quoting.'
 
+  x=( a '' '\b' 'c d' '$e' )
+  print -r ${(q)x}
+  print -r ${(q-)x}
+0:Another ${(q...)...} test
+>a '' \\b c\ d \$e
+>a '' '\b' 'c d' '$e'
+
   print -r -- ${(q-):-foo}
   print -r -- ${(q-):-foo bar}
   print -r -- ${(q-):-"*(.)"}