Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: here document within a switch fails to parse.
On Fri, Jan 8, 2021 at 11:40 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> Thanks Peter. But I still think we should
> have comment blocks. Yeah, I know it's not shellish.
Another approach you might consider:
(( dothis )) && {
# all the code you want to skip over
}
That does mean that "all the code you want to skip over" has to be
syntactically valid, but it also means you can turn that code back on
with
dothis=1 zsh yourscript.zsh
Messages sorted by:
Reverse Date,
Date,
Thread,
Author