bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24276: head without pipline is not reading complete STDIN, resulting


From: Paul Eggert
Subject: bug#24276: head without pipline is not reading complete STDIN, resulting in unwilling and unexpected command execution
Date: Sat, 20 Aug 2016 17:12:36 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

This is not a bug. It's quite OK for 'head' to read just as much input as is required, and to not bother to read the rest of input. In fact, POSIX requires this behavior if standard input is a seekable file. See:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap01.html

and look for "seekable input".






reply via email to

[Prev in Thread] Current Thread [Next in Thread]