Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: comment block curiosity



On 2021-01-03 10:10 p.m., Daniel Shahaf wrote:
Ray Andrews wrote on Sun, Jan 03, 2021 at 13:31:35 -0800:
Seems you can't use any characters that are special to the shell tho,
You can, actually:

% zsh -f =(print -rC1 -- 'alias -g "|&"=": <<EOC"' 'echo foo' '|&' 'echo bar' 'EOC' 'echo baz')
foo
baz
%
That is an invocation only an Adeptus dare use!
... The lexer doesn't emit a token for comments ...
Is there some way of seeing lexer output?  I'll bet many of my confusions would be cured if I could just see my code the way zsh sees it.





Messages sorted by: Reverse Date, Date, Thread, Author