So I use Mac OS X a fair amount and I use Fink to get all of my favorite free software tools in a Debian-ish style. I recently downloaded the iPodLinux Toolchain for Mac OS X/Intel and tried to install it. First off, these .sh scripts are a crazy hack, first 45 or so lines are an bourne shell script, the rest is the binary of the .tar.gz tarball to install. So the script parses itself, then feeds the binary part of itself to be un-targz’ed.

When I ran this crazy script on my machine, I got this:

tail: cannot open `+43' for reading: No such file or directory

gunzip: stdin: not in gzip format

It turns out that the script was written expecting the BSD tail when running tail. Since I have Fink as the first in the path, it was getting the GNU tail. So I just changed tail to /usr/bin/tail and it works. Time to submit a bug report…