Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: while loop grammar question
On Sun, Dec 8, 2024 at 1:25 AM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> That's the whole point: it's not clear to me why short "if" and
> short "while" behave differently when interrupted by EOF in a similar
> way. Is it a bug? Or is the "while" body sneakily optional?
See the thread starting here:
https://www.zsh.org/mla/workers/2018/msg01398.html (workers/43595)
There's a patch in 43597 but it was not applied because all this
behavior is down to the SHORT_LOOPS option, which doesn't apply to
"if" I guess (it's not a loop, and none of the loop forms have an
"else").
Messages sorted by:
Reverse Date,
Date,
Thread,
Author