From a85db682710c7435e1093844491b4caa35aee90e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 27 Feb 2009 10:23:58 +0000 Subject: 26622: improve comments within $(...) and add test --- Test/A01grammar.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test/A01grammar.ztst') 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 + + -- cgit 1.4.1