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


Message #25 received at 8102 <at> debbugs.gnu.org (full text, mbox):

From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: Bjartur Thorlacius <svartman95 <at> gmail.com>, Bob Proulx <bob <at> proulx.com>
Cc: "8102 <at> debbugs.gnu.org" <8102 <at> debbugs.gnu.org>
Subject: RE: bug#8102: [head] do not return EXIT_SUCCESS upon premature EOF
Date: Mon, 28 Feb 2011 07:58:32 +0100
Bjartur Thorlacius wrote:

> The only way I can imagine scripts braking due to head returning
> non-zero upon premature EOF are scripts that consider every non-zero
> exit fatal, but don't know many lines their input is. How many can
> they be?

well, head also returns !=0 e.g. if the file doesn't exist. Therefore,
if a script relies on this, it would fail in the future if head's
behaviour was changed.

Have a nice day,
Berny







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

Previous Next


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