tail command : differences between solaris and linux

Skunk Worx skunkworx at verizon.net
Sun Aug 3 18:39:01 UTC 2008


I've noticed if I try to install the JMF (Java Media Framework), 
downloaded from Sun Micro, the script fails :

$ sh ./jmf-2_1_1e-linux-i586.bin
$ Unpacking...
<snip>
tail: cannot open `+309' for reading: No such file or directory
Extracting...
./install.sfx.5451: line 1: ==: No such file or directory
./install.sfx.5451: line 3: syntax error near unexpected token `)'
<snip>

...and the script ends up zero-length.

...and if I restore the file, then change the tail command that is 
trying to dump out the code section :

$ sed -i 's/tail +309/tail -n +309/g' jmf-2_1_1e-linux-i586.bin

...it's ok.

So, they use "tail +309" and Fedora 9 needs "tail -n +309". Google shows 
people have seen this under Ubuntu as well.

The Sun forums have a post saying it's an "OpenJDK problem", which seems 
doubtful.

I'm just curious if anyone has insight into this. I'm guessing this is 
an example of a difference between the tools on Solaris vs. Linux?

---
John




More information about the fedora-list mailing list