diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-02-27 10:23:58 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-02-27 10:23:58 +0000 |
commit | a85db682710c7435e1093844491b4caa35aee90e (patch) | |
tree | bc7b2edc02d41791ada9a78923f60253f87661dd /Test | |
parent | 3d63a33407f1b4e324b83a87d55b27303a2fcdb8 (diff) | |
download | zsh-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.ztst | 12 |
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 + + |