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


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

Re: Proposed new feature for bash: unbuffered pipes

Started byChet Ramey <chet.ramey@case.edu>
First post2020-04-24 14:04 -0400
Last post2020-04-24 14:04 -0400
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: Proposed new feature for bash: unbuffered pipes Chet Ramey <chet.ramey@case.edu> - 2020-04-24 14:04 -0400

#16238 — Re: Proposed new feature for bash: unbuffered pipes

FromChet Ramey <chet.ramey@case.edu>
Date2020-04-24 14:04 -0400
SubjectRe: Proposed new feature for bash: unbuffered pipes
Message-ID<mailman.1139.1587751474.3066.bug-bash@gnu.org>
On 4/22/20 9:31 PM, Dale R. Worley wrote:
> The crux of the problem, IMHO, is to look at it from the right angle:

I'm not going to add this to bash.

It's a bad idea to add a feature that will perpetually require a user to
patch glibc (!), and that will never be added to any mainline glibc
distribution. That results in a testing and maintenance burden.

Of course, relying on mods to glibc brings its own set of problems: not
all the world, and certainly not all the systems bash runs on, use glibc.
Not even all Linux systems use glibc. So relying on glibc-specific changes
to stdio is not portable or sustainable.

Even on systems that use glibc, and those whose owners are willing to patch
and build from source, the stdio-specific nature of the proposal leaves out
those programs that just don't use stdio. That's where you'd have to modify
the kernel, and that's unlikely to happen.

As has already been mentioned, stdbuf seems to address at least some of the
requirements here, without requiring changes to bash or to applications. It
has weaknesses of its own, I know, but it's a solution that exists today
and is at least somewhat portable.

Thanks for the proposal, and for stepping up and doing a sample
implementation, but I'm not accepting it.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


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


csiph-web