Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: Always blocks perform tail call process optimization
- X-seq: zsh-workers 53733
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Philippe Altherr <philippe.altherr@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: BUG: Always blocks perform tail call process optimization
- Date: Wed, 4 Jun 2025 16:29:41 -0700
- Archived-at: <https://zsh.org/workers/53733>
- In-reply-to: <CAGdYchvduJTOpYtF3FoiBVLjo413FN1dedb=6nn+a7WuOpJvVw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYchv3wS8kwaQ2NyWMgHA3dovzKW2K494EdGh3q-ZGCq_P7g@mail.gmail.com> <CAGdYchvduJTOpYtF3FoiBVLjo413FN1dedb=6nn+a7WuOpJvVw@mail.gmail.com>
On Tue, Jun 3, 2025 at 3:47 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> Here is an updated patch with tests.
This looks fine.
> On Sun, May 11, 2025 at 11:28 PM Philippe Altherr <philippe.altherr@xxxxxxxxx> wrote:
>>
>> When the last command of a subshell is another subshell or an external command, Zsh reuses the subshell's process instead of forking. Zsh allows this optimization in try blocks of always statements.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author