Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'while do done' hangs interactive zsh
- X-seq: zsh-workers 48848
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Arseny Maslennikov <ar@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: 'while do done' hangs interactive zsh
- Date: Sun, 16 May 2021 11:02:04 -0700
- Archived-at: <https://zsh.org/workers/48848>
- In-reply-to: <20210516164328.x7jnh3gfqfiidd7a@chazelas.org>
- List-id: <zsh-workers.zsh.org>
- References: <YKDi6GYtnBt1ZYTU@cello> <20210516164328.x7jnh3gfqfiidd7a@chazelas.org>
On Sun, May 16, 2021 at 9:43 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
>
> while LIST do LIST done
>
> LIST is not explicitely specified, but it does appear to be a
> list of 0 or more pipelines. Or in other words any script.
>
[...]
>
> ... other shells require at least one pipeline
> in the condition LIST (which to me just looks like an
> arbitrary, unecessary limitation), but that does not mean shell
> implementations have to return an error here.
Bash requires at least one pipeline in the do-LIST as well.
Is this worth making into an emulation-mode thing, i.e., adding a
couple of more conditions to my while-do-done patch?
The documentation for CSH_JUNKIE_LOOPS could do with some updating as well.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author