On 2021-01-08 10:06 a.m., Peter Stephenson wrote:
(In particular, it does NOT think "oh, this is Ray abusing the ":" command, so I'd better not do my usual processing". Nobody has got around to adding that mode to the shell yet.)
setopt RAY_ABUSING_ZSH Good idea!
That's quite logical. the $() is evaluated both times, I just don't see the output for one of them. Thanks Peter. But I still think we should have comment blocks. Yeah, I know it's not shellish.The second $(...) is evaluated. This time, there's a redirection, so the argument gets sent to stderr, so you see it. There's no output to stdout, so what will actually be substituted into the argument on the command line is the empty string.