Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15465
| From | Matteo Croce <mcroce@redhat.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: bash sets O_NONBLOCK on pts |
| Date | 2019-10-02 20:43 +0200 |
| Message-ID | <mailman.790.1570041858.2651.bug-bash@gnu.org> (permalink) |
| References | <CAGnkfhzCqfL03_Ox+awRvd2gmu+OQy4J8qbzQLiaO3sQgQcGqA@mail.gmail.com> <5d94e361.21745@msgid.achurch.org> <CAGnkfhwz-1DE+yKFGi-yCviQeAE_2h2-p7rhA1xOt7pPzXBdkg@mail.gmail.com> <87tv8r8132.fsf@igel.home> <CAGnkfhzy21_PgxJ3TyipdFBOd-mZxcDZsOaX1rxLxN4ViJJ4iw@mail.gmail.com> |
On Wed, Oct 2, 2019 at 8:16 PM Andreas Schwab <schwab@linux-m68k.org> wrote: > > On Okt 02 2019, Matteo Croce <mcroce@redhat.com> wrote: > > > It seems to me that bash restores the flag, cat prints an error when not: > > > > $ cat > > $ > > > > the same is not true if running multiple commands: > > > > $ ./foo; cat > > cat: -: Resource temporarily unavailable > > $ > > > > Why this different behaviour? > > Because it's reset immediately before reading the next line with > readline. > > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 > "And now for something completely different." Exactly, while in my bug I can do any command I want without resetting it. Only `exec bash` restores it. -- Matteo Croce per aspera ad upstream
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: bash sets O_NONBLOCK on pts Matteo Croce <mcroce@redhat.com> - 2019-10-02 20:43 +0200
csiph-web