GNU bug report logs -
#33622
coreutils v. 8.30 – Tail prints the first row in 'tail -n <N>'
Previous Next
Reported by: Ricky Tigg <ricky.tigg <at> gmail.com>
Date: Wed, 5 Dec 2018 10:52:02 UTC
Severity: normal
Tags: notabug
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33622 in the body.
You can then email your comments to 33622 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#33622
; Package
coreutils
.
(Wed, 05 Dec 2018 10:52:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ricky Tigg <ricky.tigg <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 05 Dec 2018 10:52:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
OS: *Fedora*. Component: coreutils.x86_64 8.30-6.fc29 @System
Tail prints the first row in 'tail -n <N>'
Command executed:
$ dnf repoquery --requires bash --recursive --resolve | grep -E
'.x86_64$|.noarch$' | tail -n 1
Last metadata expiration check: 0:28:25 ago on Wed Dec 5 11:09:16 2018.
tzdata-0:2018g-1.fc29.noarch
Expected result: command to only print N rows, which means without printing
the first row.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#33622
; Package
coreutils
.
(Wed, 05 Dec 2018 12:50:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On Wednesday, December 5, 2018 11:51:09 AM CET Ricky Tigg wrote:
> OS: *Fedora*. Component: coreutils.x86_64 8.30-6.fc29 @System
>
> Tail prints the first row in 'tail -n <N>'
>
> Command executed:
> $ dnf repoquery --requires bash --recursive --resolve | grep -E
> '.x86_64$|.noarch$' | tail -n 1
> Last metadata expiration check: 0:28:25 ago on Wed Dec 5 11:09:16 2018.
> tzdata-0:2018g-1.fc29.noarch
>
> Expected result: command to only print N rows, which means without printing
> the first row.
The line "Last metadata expiration check: [...]" is not printed by tail
at all. It is printed by dnf to standard _error_ output. You will see
it even if you redirect dnf's standard output to /dev/null:
$ dnf repoquery --requires bash --recursive --resolve >/dev/null
Last metadata expiration check: [...]
You can use `dnf --quiet ...` to suppress the message.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#33622
; Package
coreutils
.
(Wed, 05 Dec 2018 12:50:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#33622
; Package
coreutils
.
(Sun, 23 Dec 2018 05:47:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 33622 <at> debbugs.gnu.org (full text, mbox):
tags 33622 notabug
close 33622
stop
Hello,
On 2018-12-05 5:49 a.m., Kamil Dudka wrote:
> On Wednesday, December 5, 2018 11:51:09 AM CET Ricky Tigg wrote:
>> OS: *Fedora*. Component: coreutils.x86_64 8.30-6.fc29 @System
>>
>> Tail prints the first row in 'tail -n <N>'
>>
>> Command executed:
>> $ dnf repoquery --requires bash --recursive --resolve | grep -E
>> '.x86_64$|.noarch$' | tail -n 1
>> Last metadata expiration check: 0:28:25 ago on Wed Dec 5 11:09:16 2018.
>> tzdata-0:2018g-1.fc29.noarch
>>
>> Expected result: command to only print N rows, which means without printing
>> the first row.
>
> The line "Last metadata expiration check: [...]" is not printed by tail
> at all. It is printed by dnf to standard _error_ output. You will see
> it even if you redirect dnf's standard output to /dev/null:
>
> $ dnf repoquery --requires bash --recursive --resolve >/dev/null
> Last metadata expiration check: [...]
>
> You can use `dnf --quiet ...` to suppress the message.
Thank you Kamil for explaining the issue.
I'm closing this as "notabug".
-assaf
Added tag(s) notabug.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Dec 2018 05:47:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
33622 <at> debbugs.gnu.org and Ricky Tigg <ricky.tigg <at> gmail.com>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Dec 2018 05:47:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 20 Jan 2019 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 230 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.