Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Loops and pipes
- X-seq: zsh-workers 55116
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Loops and pipes
- Date: Sun, 23 Aug 2026 17:53:58 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eib/2xrHd56Y/6mwVScF7qV8/CpN33qlMUhkl6U2U1A=; fh=BgAYDYpL6Ne/A5nWEMVJiHiBtrz8Imz3uf26RDwgQX4=; b=QXiTtxOsfks4nGbvwSFWdf+GnVUPPngBlBydD+bNHC6f9tejCpPc4a7HEvJM4Kqpsi cpxh1hjXHakV6hmtPFKh9LshQ/ZtIV7xr26fqAbathefmGT+t1sbj/JN0ZXUPtyPlQ06 i3K2WmAuM2kGo317gYxIYrdUHuZhwOM95o7rpcyrXw+nhQqKodoNFWD4QjCwFF5h5JfB P/ZIRGvmntzYOrokIRGMfsdNsgiB+fM5Ph5W/rlhPDbhDZxIosI6Z30XWRDoF8pewRHN GkcVOL/A02jUJEUb4WNa709y+FppEWQiMTYdbYxZthI+FYtWLddxqiBFEI9/TecNIO+w Hxnw==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1787532850; cv=none; d=google.com; s=arc-20260327; b=otdY3s87B+ZCcxwRkBQ2OhZxMCfTYZkn1YsD9AvjOpgXx2Gu4LK9RsU4q7gvdU6lX4 McU72TxqS1yCDMj7qpcpM8JQJoTB0wh26RDfFWHRpgankzl6sBEHiVj1kkduuheCxc+D Q5fzhlBazap6Liph05HsbGftIVQsC0PVk85RxBs10XEli3vz7NsBH+pEol2sfq170GRT ISdsfqMFFutODkfvF2xDpWrRkqXarzRHVUq/huWqUhtx0Kf7dSEvuzs0ZIUdqCkiXPQH EhtnuTsI7cJALvVHI/yOeuRpBfapQ5SXHBODhxYU3u0CasSoKWDk12geyEWJfIsFRGj1 6TgA==
- Archived-at: <https://zsh.org/workers/55116>
- In-reply-to: <CAGdYchtQSDw3VJ=g3b8hU-KrAgsApOJr7LgMgoY9iSQENBg90Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7aqY8wsSSczg_79gPzeA2zfQA=hLhKhXXnLLgNKK_0GKQ@mail.gmail.com> <CAH+w=7bj2yiU_o5jv9Q=J5FHxoCX9j3fn5OKTCBQhvk2qsr7pw@mail.gmail.com> <CAGdYchsAhEE5jRd3o9Kc=KBL4qdCbGs4N3n4bHH1wDnoaQrhEQ@mail.gmail.com> <CAH+w=7Zh8+dKT7hwyQquZgr=DYzYXKrLs40h_0WOyam+zAT-7Q@mail.gmail.com> <CAGdYchtnz_ti5BSmyUFGQr2y3UYE5OCAi6PE9+nsh==rHbf4CQ@mail.gmail.com> <CAGdYchtQSDw3VJ=g3b8hU-KrAgsApOJr7LgMgoY9iSQENBg90Q@mail.gmail.com>
On Sun, Aug 23, 2026 at 3:41 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> Here is an alternate version of the second patch that emits a warning rather than an error when breaking/continuing beyond the outermost loop in the same subshell. This version also prevents "continue" from continuing the outermost loop when continuing beyond it. The following script will only print A (and a warning), while it currently prints A, B, and C.
I remain uncertain about this because both bash and ksh silently
continue the outer loop on "continue N" for N > number of enclosing
loops, that is, they print A B and C.
Bash has the same warning (error?) in subshells as was added in the
first workers/55061 patch. Ksh silently proceeds in both instances.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author