summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-02-27 10:23:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-02-27 10:23:58 +0000
commita85db682710c7435e1093844491b4caa35aee90e (patch)
treebc7b2edc02d41791ada9a78923f60253f87661dd /Test
parent3d63a33407f1b4e324b83a87d55b27303a2fcdb8 (diff)
downloadzsh-a85db682710c7435e1093844491b4caa35aee90e.tar.gz
zsh-a85db682710c7435e1093844491b4caa35aee90e.tar.xz
zsh-a85db682710c7435e1093844491b4caa35aee90e.zip
26622: improve comments within $(...) and add test
Diffstat (limited to 'Test')
-rw-r--r--Test/A01grammar.ztst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index f283451ce..a1ec2cc00 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -503,3 +503,15 @@
   $ZTST_testdir/../Src/zsh -f NonExistentScript
 127q:Non-existent script causes exit status 127
 ?$ZTST_testdir/../Src/zsh: can't open input file: NonExistentScript
+
+  (setopt nonomatch
+  # use this to get stuff at start of line
+  contents=$'# comment \'\necho value #with " stuff\n# comment\n#comment
+  echo not#comment\n'
+  eval 'VAR=$('"$contents"')'
+  print -l $VAR)
+0:comments within $(...)
+>value
+>not#comment
+
+