GNU bug report logs - #19857
BUG with head "-n-0"

Previous Next

Package: coreutils;

Reported by: matshyeq <matshyeq <at> gmail.com>

Date: Fri, 13 Feb 2015 17:13:02 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: matshyeq <matshyeq <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: BUG with head "-n-0"
Date: Fri, 13 Feb 2015 16:21:12 +0000
[Message part 1 (text/plain, inline)]
Hi All,

I think I've found an issue when head is called with -n-0 parameter
It should return whole file but only seem to work for files with newline
character at the end.
For those that don't have it - it doesn't return anything.

BTW. I know -n-0 might be nonsensical but in my case simply pass the number
of rows to skip in a variable.

Regards,
Maciek
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 268 days ago.

Previous Next


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