Craig Ringer wrote: > Martin Costabel wrote: >> Craig Ringer wrote: >> [] >>> The script is attached. I've tested it with ash, dash, bash, zsh, >>> and with the berkeley shell on SCO OpenServer. More testing would be >>> appreciated. >> If you could avoid "echo -n", it would work better on some POSIXly >> over-correct sh versions, like the one coming with MacOSX. > > Gah! That even works on ksh from SCO OpenServer (circa 1993) and on > busybox! It's no great loss, but ... well, that's quite a surprise. > > I thought Mac OS X >= 1.3 used bash by default anyway?
Yes, they still do, but when you call it as "/bin/sh", it goes into POSIX mode. And since Apple have worked very hard to get MacOSX 10.5 certified as Unix, they sometimes went overboard and are now trying to be more POSIX conforming than the POSIX standard itself. -- Martin
