diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-06-05 11:15:48 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-06-05 11:15:48 +0000 |
commit | 72529e4fa606e9ccb6b9200df2d696782c742ac7 (patch) | |
tree | 09d617db5dcefefcaee65ef2c6f4ea38b99fa26c /Test | |
parent | 96eb8faa7c811b49d78f3772e327c502a972da5e (diff) | |
download | zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.gz zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.tar.xz zsh-72529e4fa606e9ccb6b9200df2d696782c742ac7.zip |
27304: add ${(q-)..} flag
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D04parameter.ztst | 14 |
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} |