GNU bug report logs -
#58416
-u should only affect stdout, not stdin
Previous Next
To reply to this bug, email your comments to 58416 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-sed <at> gnu.org
:
bug#58416
; Package
sed
.
(Mon, 10 Oct 2022 16:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andras Korn <korn-gnu.org <at> elan.rulez.org>
:
New bug report received and forwarded. Copy sent to
bug-sed <at> gnu.org
.
(Mon, 10 Oct 2022 16:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I just straced a running sed(1) instance (4.8), and was amazed to see it read its input character by character.
I then remembered that I called it with '-u' because its output was being read by a program that needed it ASAP.
I can't see any benefit to reading stdin by the character, but am prepared to believe a use-case exists. However, I submit that not all use-cases that require unbuffered (or line-buffered) output also automatically need inefficient reading of the input.
Maybe add a new switch for the input part?
Thanks and best regards,
AndrĂ¡s
--
Klein bottle for rent; enquire within.
This bug report was last modified 2 years and 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.