Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange terminal resizing behavior on macOS 11.6 and calling pwsh under zsh
On Wed, Oct 6, 2021 at 4:06 PM Andrew Owen
<andrew.owen@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> I seem to have found a curious bug in how zsh interacts with pwsh on macOS 11.6. I first reported it to the pwsh team, here: https://github.com/PowerShell/PowerShell/issues/16174
I presume we can ignore the typo in
https://github.com/PowerShell/PowerShell/issues/16174#issuecomment-934715868
("/usr/local/bin pwsh ...").
"Process exited 130" normally means that a QUIT signal was received
somehow. Zsh itself ignores QUIT but restores the default behavior
when starting a subprocess, unless that signal has been explicitly
ignored (here I assume the MacOS zsh is built with POSIX_SIGNALS
defined). The handling of INT and QUIT also changes when the zsh
MONITOR option is not set, which typically happens when zsh is not
interactive (as with #! it is not because it's running a script file).
I would suggest two things:
1) Examine the pwsh process with dtruss while attempting to reproduce
the issue, to give some hint of whether QUIT is actually being
received. Maybe you can figure out from where.
2) Try using "exec /usr/local/bin/pwsh ..." in the script so the zsh
parent is removed from the process tree, and then try to reproduce the
issue.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author