Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] zsh fails to resume function
(Note, we received this twice as workers/52330 and workers/52331, I'm
responding to 52330.)
On Wed, Nov 29, 2023 at 9:17 AM Paolo Perego <paolo.perego@xxxxxxxx> wrote:
>
> It seems zsh fails to re-enter a nested command putted in background
> when defined in a function.
> [...]
> Can you please confirm that this is a bug for you and give us a link to
> backtrack the progress?
This is fixed in current git HEAD by workers/50874 and workers/50922.
https://www.zsh.org/mla/workers/2022/msg01204.html
https://www.zsh.org/mla/workers/2022/msg01252.html
Note the subject of the latter refers to "problem with 'ls | less'
shell function".
In the specific example in your test case, "less" was known to trigger
the bug due to its internal handling of the terminal (stdin/out/err
descriptors) and signals. Thread starts at
https://www.zsh.org/mla/workers/2022/msg01115.html
It might be possible to backport those two patches into your build.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author