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

Re: Block comments ala Ray



On Thu, Feb 11, 2021 at 10:17 PM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> print this <# part is a comment
> (lah-di-dah for perhaps hundreds of lines)
> but this part #> is the rest of the command

Of course one can already do

print this ${:+ stuff is discarded
(as long as there are no unbalanced
quotes or curly braces)
and then this} is the rest of the command

So perhaps it's not worth worrying that there's another way to do that.




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