GNU bug report logs -
#30504
bug tail -2 FILE1 FILE1 - tail: option used in invalid context -- 2
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30504 in the body.
You can then email your comments to 30504 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#30504
; Package
coreutils
.
(Sat, 17 Feb 2018 22:20:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mike Brescia <mike142wood <at> verizon.net>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sat, 17 Feb 2018 22:20:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
<oops update after typing paragraphs below>
searching archive with "invalid context" gets to "bug#8231: Bug in the linux command: tail"
I read the exchanges from 2011 and see where it went, but gripe that now I have to type extra characters to invoke it.
Perhaps I should fear that "head" will eventually be "broken" also.
</oops>
Attempting to use tail to get some number of lines other than default 10 on more than one file returns with error message "tail: option used in invalid context -- 2" or whatever N was used as arg.
head -N works fine
"aptitude" distribution on debian/linux --
$ tail --version
tail (GNU coreutils) 8.26
$ uname -a
Linux xymon-insp 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux
"homebrew" distribution on macos --
$ gtail --version
tail (GNU coreutils) 8.29
$ uname -a
Darwin DanteB.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64
I did check the FAQ, and tried the bug-mailing archive ( see <oops> above ). I think that the difference between "head" and "tail" operation with "-N" usage points to a bug in tail.
-- Mike
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#30504
; Package
coreutils
.
(Sat, 17 Feb 2018 22:38:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 30504 <at> debbugs.gnu.org (full text, mbox):
There is a backward-compatibility problem with supporting "tail -2" with any
number of extra arguments, since (for example) "tail -2c 20" has a different
meaning in traditional "tail" than you might think. To avoid confusion, "tail
-2" is not encouraged when using non-traditional features (in your case, two or
more FILE arguments). Since "tail -n2 FILE1 FILE2 ..." suffices, it's not clear
that it'd be worth the aggravation to rethink this.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#30504
; Package
coreutils
.
(Tue, 30 Oct 2018 02:49:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 30504 <at> debbugs.gnu.org (full text, mbox):
close 30504
stop
(triaging old bugs)
On 2018-02-17 3:37 p.m., Paul Eggert wrote:
> There is a backward-compatibility problem with supporting "tail -2" with
> any number of extra arguments, since (for example) "tail -2c 20" has a
> different meaning in traditional "tail" than you might think. To avoid
> confusion, "tail -2" is not encouraged when using non-traditional
> features (in your case, two or more FILE arguments). Since "tail -n2
> FILE1 FILE2 ..." suffices, it's not clear that it'd be worth the
> aggravation to rethink this.
>
Given the above, and no further comments,
I'm closing this bug.
-assaf
bug closed, send any further explanations to
30504 <at> debbugs.gnu.org and Mike Brescia <mike142wood <at> verizon.net>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 02:49:02 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
.
(Tue, 27 Nov 2018 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.