summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-12-13 11:20:46 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-12-13 11:20:46 +0000
commit5858e79f4d942ab13414f5efaf6f280bac690060 (patch)
tree9ff94de5937f49527b36147afd7ec7b3cf510822 /Test
parent0a5702457b4074c72b201fb0eeb68b89763c7874 (diff)
downloadzsh-5858e79f4d942ab13414f5efaf6f280bac690060.tar.gz
zsh-5858e79f4d942ab13414f5efaf6f280bac690060.tar.xz
zsh-5858e79f4d942ab13414f5efaf6f280bac690060.zip
28526: remove bogus newline with stripped comment zplitting
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index e2772afe5..8791f570a 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -456,6 +456,12 @@
 >another
 >one
 
+  line='with comment # at the end'
+  print -l ${(z+C+)line}
+0:Test we don't get an additional newline token
+>with
+>comment
+
   psvar=(dog)
   setopt promptsubst
   foo='It shouldn'\''t $(happen) to a %1v.'