GNU bug report logs - #8102
[head] do not return EXIT_SUCCESS upon premature EOF

Previous Next

Package: coreutils;

Reported by: Bjartur Thorlacius <svartman95 <at> gmail.com>

Date: Wed, 23 Feb 2011 19:26:02 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bjartur Thorlacius <svartman95 <at> gmail.com>
To: 8102 <at> debbugs.gnu.org
Subject: bug#8102: [head] do not return EXIT_SUCCESS upon premature EOF
Date: Wed, 23 Feb 2011 18:58:16 +0000
% echo | head -n2 && echo bug
bug

This bit me when writing a line oriented prompter (which would `while
head -n1`).

FYI, this also applies to FreeBSD head.




This bug report was last modified 13 years and 263 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.