summaryrefslogtreecommitdiffstats
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-06-05 11:15:48 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-06-05 11:15:48 +0000
commit72529e4fa606e9ccb6b9200df2d696782c742ac7 (patch)
tree09d617db5dcefefcaee65ef2c6f4ea38b99fa26c /Test/D04parameter.ztst
parentBaptiste Daroussin: 27033: FreeBSD portaudit and mount completion (diff)
downloadzsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar
zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.gz
zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.bz2
zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.lz
zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.xz
zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.zst
zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.zip
27304: add ${(q-)..} flag
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 4cd137bbd..358b46ef7 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -319,11 +319,25 @@
print -r ${(qq)foo}
print -r ${(qqq)foo}
print -r ${(qqqq)foo}
+ print -r ${(q-)foo}
0:${(q...)...}
>playing\ \'stupid\'\ \"games\"\ \\w\\i\\t\\h\ \$quoting.
>'playing '\''stupid'\'' "games" \w\i\t\h $quoting.'
>"playing 'stupid' \"games\" \\w\\i\\t\\h \$quoting."
>$'playing \'stupid\' "games" \\w\\i\\t\\h $quoting.'
+>'playing '\'stupid\'' "games" \w\i\t\h $quoting.'
+
+ print -r -- ${(q-):-foo}
+ print -r -- ${(q-):-foo bar}
+ print -r -- ${(q-):-"*(.)"}
+ print -r -- ${(q-):-"wow 'this is cool' or is it?"}
+ print -r -- ${(q-):-"no-it's-not"}
+0:${(q-)...} minimal single quoting
+>foo
+>'foo bar'
+>'*(.)'
+>'wow '\''this is cool'\'' or is it?'
+>no-it\'s-not
foo="'and now' \"even the pubs\" \\a\\r\\e shut."
print -r ${(Q)foo}