From 0a5702457b4074c72b201fb0eeb68b89763c7874 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 12 Dec 2010 22:44:50 +0000 Subject: 28510: add (z+c+) and (z+C+) parameter flags --- Test/D04parameter.ztst | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'Test/D04parameter.ztst') 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.' -- cgit 1.4.1