GNU bug report logs -
#11990
Tail does not behave as expected
Previous Next
Reported by: Rodolfo Aramayo <raramayo <at> gmail.com>
Date: Thu, 19 Jul 2012 16:16:02 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 11990 <at> debbugs.gnu.org (full text, mbox):
tag 11990 + notabug
close 11990
thanks
On 07/19/2012 04:25 PM, Rodolfo Aramayo wrote:
> Version:tail (GNU coreutils) 8.17
>
> Please take a look at this output:
>
> 259$ tail supercont10r12_01_wt_-fasta.gff3
> Supercontig_10.1 protein2genome:Proteins_wt protein_match 9766147
>
> 260$ tail supercont10r12_0{1..2}_wt_-fasta.gff3
> ==> supercont10r12_01_wt_-fasta.gff3 <==
> Supercontig_10.1 protein2genome:Proteins_wt protein_match 9766147
> ==> supercont10r12_02_wt_-fasta.gff3 <==
> Supercontig_10.2 protein2genome:Proteins_wt match_part 4451411 4452067
>
> 261$ tail -1 supercont10r12_01_wt_-fasta.gff3
> Supercontig_10.1 protein2genome:Proteins_wt match_part 9771037 9771263
>
> 262$ tail -1 supercont10r12_0{1..2}_wt_-fasta.gff3
> tail: option used in invalid context -- 1
>
>
> This is not what I expected
Yes you need to use `tail -n1 ...` to get consistent results.
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Old-tail-plus-N-syntax-now-fails
cheers,
Pádraig.
This bug report was last modified 12 years and 310 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.