bug#33281: head does not consume input after '-c' is satisfied

2018-11-05 Thread Bernhard Voelker
On 11/5/18 10:17 PM, Philip Rowlands wrote: > On Mon, 5 Nov 2018, at 20:30, Luiz Angelo Daros de Luca wrote: >> >> Once head read enough bytes to satisfy -c option, it stops reading input >> and quit. >> This is different from what -n does and it is also different from both >> FreeBSD and busybox

bug#33281: head does not consume input after '-c' is satisfied

2018-11-05 Thread Philip Rowlands
On Mon, 5 Nov 2018, at 20:30, Luiz Angelo Daros de Luca wrote: > > Once head read enough bytes to satisfy -c option, it stops reading input > and quit. > This is different from what -n does and it is also different from both > FreeBSD and busybox head implementation. > > With GNU Coreutils head:

bug#33281: head does not consume input after '-c' is satisfied

2018-11-05 Thread Luiz Angelo Daros de Luca
Hello, Once head read enough bytes to satisfy -c option, it stops reading input and quit. This is different from what -n does and it is also different from both FreeBSD and busybox head implementation. With GNU Coreutils head: $ echo -e "123\n456\n789" | { head -n 1; while read a; do echo