|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#17145: closed (head fails with implicit stdin on darwin) |
Date: | Wed, 02 Apr 2014 14:48:02 +0000 |
Your message dated Wed, 02 Apr 2014 07:47:11 -0700 with message-id <address@hidden> and subject line Re: bug#17145: head fails with implicit stdin on darwin has caused the debbugs.gnu.org bug report #17145, regarding head fails with implicit stdin on darwin to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 17145: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17145 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: head fails with implicit stdin on darwin Date: Sun, 30 Mar 2014 22:40:18 +0200 Hello, head -n -1 -- - or equivalently head -n -1 returns immediately (ie does not wait for further stdin) and prints nothing. I use coreutils 8.22 compiled (with gcc-4.8.2) on top of darwin 13.1.0 (Mavericks). However the following seem to work perfectly: head -n 1 head -c -1 cat | head -n -1 head -n -1 ---presume-input-pipe on cygwin: head -n -1 What is weird on my system is lseek() at the beginning of elide_tail_lines_file(): lseek(fd, 0, SEEK_CUR) returns a (random?) number, something like 6735, 539 etc. lseek(fd, 0, SEEK_END) returns 0 Hope this helps, Regards, Denis Excoffier.
--- End Message ---
--- Begin Message ---Subject: Re: bug#17145: head fails with implicit stdin on darwin Date: Wed, 02 Apr 2014 07:47:11 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 Pádraig Brady wrote:s/if/else if/Thanks. Or better yet, return false if fstat fails. I did that, plus the other changes you and Bernhard suggested, and installed the patch.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |