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

Re: here document within a switch fails to parse.



On 2021-01-08 11:56 a.m., Bart Schaefer wrote:

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

Cool.  It seems less heretical.





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