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


Groups > gnu.bash.bug > #16228

Re: Proposed new feature for bash: unbuffered pipes, part 1: overview

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From worley@alum.mit.edu (Dale R. Worley)
Newsgroups gnu.bash.bug
Subject Re: Proposed new feature for bash: unbuffered pipes, part 1: overview
Date Wed, 22 Apr 2020 21:16:53 -0400
Lines 30
Approved bug-bash@gnu.org
Message-ID <mailman.1013.1587604625.3066.bug-bash@gnu.org> (permalink)
References <20200422113606.GD845@eeg.ccf.org> <87pnbzuhkq.fsf@hobgoblin.ariadne.com>
NNTP-Posting-Host lists.gnu.org
X-Trace usenet.stanford.edu 1587604625 3473 209.51.188.17 (23 Apr 2020 01:17:05 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Greg Wooledge <wooledg@eeg.ccf.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1587604617; bh=esqzactXmRwoDfzzbxsvonwup9tW0HmV/2zZFRbO8ZM=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID; b=T8rqqFAQUdIcB5mEsXXD+LqVGCeucfqlBBP7hv3OI08qrshfzV7wBRVGuOg0IyVab OWgCpdQQAOsNFEWEnZmv3td9euwyQ/a59JtusiPe9WOR9By1D5yXyz56Qmc/qesBtU AsmmFW+FpA/XiiAB1MTfD2N6aWjab3z4rKg79FBT0spN432hgpAYhxWDJ3qXoC+Sd5 z8qKA1BdUo4GqFeLJTP0FaVw8PhAINtJ6Pjp+O4HmsDLx4THBEDT6UvChLLos/ak94 1jMVyNYFcd5tEjAeJiIC6kS6cCeyE+LQWtYAaN8Hm/peLXV3nlDQahj790PgSGOgBi 2kmGQbw+XvI9A==
X-Xfinity-VMeta sc=-100.00;st=legit
X-Authentication-Warning hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
In-Reply-To <20200422113606.GD845@eeg.ccf.org> (wooledg@eeg.ccf.org)
Received-SPF softfail client-ip=2001:558:fe21:29:69:252:207:44; envelope-from=worley@alum.mit.edu; helo=resqmta-ch2-12v.sys.comcast.net
X-detected-operating-system by eggs.gnu.org: First seen = 2020/04/22 21:16:57
X-ACL-Warn Detected OS = ???
X-Received-From 2001:558:fe21:29:69:252:207:44
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 <87pnbzuhkq.fsf@hobgoblin.ariadne.com>
Xref csiph.com gnu.bash.bug:16228

Show key headers only | View raw


Greg Wooledge <wooledg@eeg.ccf.org> writes:
> On Tue, Apr 21, 2020 at 08:38:41PM -0400, Dale R. Worley wrote:
>> The "unbuffered pipe" symbol ">|>" causes Bash to set in the
>> environment of the "grep" process a variable "STDOUT_UNBUFFERED" with
>> a value that contains the dev and ino values for the pipe which the
>> "grep" process sees as fd 1.
>
> Which libc implements this?

None does yet, obviously.  That's why I provided a patch for it.

>> References
>> 
>> 14 Sep 1999
>> https://marc.info/?l=glibc-bug&m=98313957306295&w=4
>> "[REMINDER] stdio buffer flushing control environment variable"
>
> The next message in the thread is from Ulrich Drepper, saying:
>
>   I will not implement this since it's completely up to the application
>   to do this.  One knows in advance when this is necessary.  If there is
>   a problem with the current code to select when line-buffering is used
>   (we use as everybody else isatty) then one can talk about this.  I
>   think it is correct, though.

That's true, but I don't hink he's looking at it properly.  It was also
from 20 years ago.

Dale

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


Thread

Re: Proposed new feature for bash:  unbuffered pipes, part 1: overview worley@alum.mit.edu (Dale R. Worley) - 2020-04-22 21:16 -0400

csiph-web