GNU bug report logs - #33281
head does not consume input after '-c' is satisfied

Previous Next

Package: coreutils;

Reported by: Luiz Angelo Daros de Luca <luizluca <at> gmail.com>

Date: Mon, 5 Nov 2018 20:34:01 UTC

Severity: wishlist

Tags: wontfix

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

Bug is archived. No further changes may be made.

Full log


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

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>,
 Philip Rowlands <phr+coreutils <at> dimebar.com>, 33281 <at> debbugs.gnu.org
Subject: Re: bug#33281: head does not consume input after '-c' is satisfied
Date: Sat, 22 Dec 2018 22:43:48 -0700
tags 33281 wontfix
severity 33281 wishlist
close 33281
stop

Hello,

On 2018-11-06 12:52 p.m., Paul Eggert wrote:
> On 11/5/18 1:17 PM, Philip Rowlands wrote:
>> To achieve consistency in the other direction, head could ignore the 
>> optimization to reduce the number of bytes read, and always read 8192 
>> bytes, knowing that some would be discarded.
> 
> Let's not do that. It's less efficient and less useful than what GNU 
> 'head -c4' is doing now.
> 
>> For widely differing values, the only way to produce the same residual 
>> output would be to consume all input data.
> 
> Eeuuww. Let's *especially* not do that.
> 

Given the above, I'm closing this as "wontfix".
Discussion can continue by replying to this thread.

-assaf






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

Previous Next


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