Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15464 > unrolled thread

Re: bash sets O_NONBLOCK on pts

Started byAndreas Schwab <schwab@linux-m68k.org>
First post2019-10-02 20:16 +0200
Last post2019-10-02 20:16 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: bash sets O_NONBLOCK on pts Andreas Schwab <schwab@linux-m68k.org> - 2019-10-02 20:16 +0200

#15464 — Re: bash sets O_NONBLOCK on pts

FromAndreas Schwab <schwab@linux-m68k.org>
Date2019-10-02 20:16 +0200
SubjectRe: bash sets O_NONBLOCK on pts
Message-ID<mailman.789.1570040206.2651.bug-bash@gnu.org>
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."

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web