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


Groups > gnu.bash.bug > #15464

Re: bash sets O_NONBLOCK on pts

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Andreas Schwab <schwab@linux-m68k.org>
Newsgroups gnu.bash.bug
Subject Re: bash sets O_NONBLOCK on pts
Date Wed, 02 Oct 2019 20:16:33 +0200
Lines 25
Approved bug-bash@gnu.org
Message-ID <mailman.789.1570040206.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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain
X-Trace usenet.stanford.edu 1570040207 13888 209.51.188.17 (2 Oct 2019 18:16:47 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Andrew Church <achurch@achurch.org>, bug-bash@gnu.org
To Matteo Croce <mcroce@redhat.com>
Envelope-to bug-bash@gnu.org
X-Virus-Scanned amavisd-new at mnet-online.de
X-Auth-Info 1xLw8tG6GlM1F/DT8pqdXAodjyOeZ3PMXQ5BuKQ+RCZK7BScf9EqtrUK4gnUXK12
X-Yow Four thousand different MAGNATES, MOGULS & NABOBS are romping in my gothic solarium!!
In-Reply-To <CAGnkfhwz-1DE+yKFGi-yCviQeAE_2h2-p7rhA1xOt7pPzXBdkg@mail.gmail.com> (Matteo Croce's message of "Wed, 2 Oct 2019 19:59:24 +0200")
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 212.18.0.9
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <87tv8r8132.fsf@igel.home>
X-Mailman-Original-References <CAGnkfhzCqfL03_Ox+awRvd2gmu+OQy4J8qbzQLiaO3sQgQcGqA@mail.gmail.com> <5d94e361.21745@msgid.achurch.org> <CAGnkfhwz-1DE+yKFGi-yCviQeAE_2h2-p7rhA1xOt7pPzXBdkg@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15464

Show key headers only | View raw


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."

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web