did tail semantics change?

Jack Tanner ihok at hotmail.com
Thu Jun 21 23:51:21 UTC 2007


I think I found a bug in GNU tail. What do you folks think?

I have some shell scripts that were written by a third party in 2002 or so.

There are these two commands:

head -219554 tokenized > ../eng.train
tail +219555 tokenized > ../eng.testa

The first one works on F7; the second one errors out:
tail: cannot open `+219555' for reading: No such file or directory

This is supposed to be valid syntax: "If any option-argument is a number n
starting with a ‘+’, tail begins printing with the nth item from the start of
each file, instead of from the end."
http://www.gnu.org/software/coreutils/manual/html_node/tail-invocation.html

So, bug or no bug? And is it just funny on F7 or can you repro it elsewhere?




More information about the fedora-list mailing list