Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Reverting the effect of 'setopt nomonitor' executed during shell startup



On Fri, Jan 14, 2022 at 6:27 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
>   % >test.zsh <<\END
>   zsh -fic "unsetopt monitor"
>   stty icanon
>   END

More interesting is that if that is changed to

% >test.zsh <<\END
zsh -fic "unsetopt monitor"
setopt monitor
stty icanon
END

then stty is still stopped by TTOU but zsh is not and waits forever for it.

Move the "setopt monitor" into the -c argument (after the unsetopt)
and the whole script stops with TTOU again.  So it has something to do
with order of operations at startup.

I'm traveling today and can't look into it any further.




Messages sorted by: Reverse Date, Date, Thread, Author