zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Roman Perepelitsa <roman.perepelitsa@gmail.com>
Cc: Andreas Hartmann <hartan@7x.de>, Zsh Users <zsh-users@zsh.org>
Subject: Re: Reverting the effect of 'setopt nomonitor' executed during shell startup
Date: Fri, 14 Jan 2022 09:26:17 -0800	[thread overview]
Message-ID: <CAH+w=7aWqT-yGz7pzwzGF00nckuOyJCcmLfQ=g=OvUEUn=9dow@mail.gmail.com> (raw)
In-Reply-To: <CAN=4vMp7segBg5wwx46dzyZdC_ZV-ENoZ63dvvzZYbwVjmytZg@mail.gmail.com>

On Fri, Jan 14, 2022 at 6:27 AM Roman Perepelitsa
<roman.perepelitsa@gmail.com> 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.


      reply	other threads:[~2022-01-14 17:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14 14:07 Andreas Hartmann
2022-01-14 14:27 ` Roman Perepelitsa
2022-01-14 17:26   ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7aWqT-yGz7pzwzGF00nckuOyJCcmLfQ=g=OvUEUn=9dow@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=hartan@7x.de \
    --cc=roman.perepelitsa@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).