diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-12 22:44:50 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-12 22:44:50 +0000 |
commit | 0a5702457b4074c72b201fb0eeb68b89763c7874 (patch) | |
tree | 0fff9ded114ba57fd4131fa4a43860cafd94b91b /Test | |
parent | 72d1045da5f38380a8b4bd6fcb02baac21e0a4cf (diff) | |
download | zsh-0a5702457b4074c72b201fb0eeb68b89763c7874.tar.gz zsh-0a5702457b4074c72b201fb0eeb68b89763c7874.tar.xz zsh-0a5702457b4074c72b201fb0eeb68b89763c7874.zip |
28510: add (z+c+) and (z+C+) parameter flags
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D04parameter.ztst | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 4bd911e5f..e2772afe5 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -417,6 +417,45 @@ >5:i++ : >6:)): + line=$'A line with # someone\'s comment\nanother line # (1 more\nanother one' + print "*** Normal ***" + print -l ${(z)line} + print "*** Kept ***" + print -l ${(z+c+)line} + print "*** Removed ***" + print -l ${(z+C+)line} +0:Comments with (z) +>*** Normal *** +>A +>line +>with +># +>someone's comment +>another line # (1 more +>another one +>*** Kept *** +>A +>line +>with +># someone's comment +>; +>another +>line +># (1 more +>; +>another +>one +>*** Removed *** +>A +>line +>with +>; +>another +>line +>; +>another +>one + psvar=(dog) setopt promptsubst foo='It shouldn'\''t $(happen) to a %1v.' |