1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

26622: improve comments within $(...) and add test

This commit is contained in:
Peter Stephenson 2009-02-27 10:23:58 +00:00
parent 3d63a33407
commit a85db68271
3 changed files with 20 additions and 2 deletions

View file

@ -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