shell$ ls . -R
works on Linux but not on OS X. This is because OS X command line options have to come before the arguments,and not just anywhere as in Linux.
In particular, this means that any shell scripts I write on Linux will be unportable to Macs.
Question How can I fix this on the Mac?
I can either take care to write portable Linux scripts, or I can install MacPorts so that
ls and other commands will be picked from MacPorts and not the Apple provided binaries. Is there any better way?