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 c...@case.edu http://tiswww.cwru.edu/~chet/