For those interested in installing dash shell on OSX Lion to help test POSIX compliancy of shell scripts, it is quite easy. I did it like this:
If you don't have gcc on your system:
0. Download and install the Command Line Tools for Xcode package from Sign In - Apple *
- Download the dash tar ball (I used the latest version 0.5.7) here: Index of /~herbert/dash/files
- gunzip and untar the tar ball
- cd to the dash source directory
./configure
make
sudo make install
- add /usr/local/bin/dash to /etc/shells
S.
====
Update: On MacOS Catalina (10.15) and higher /bin/dash
is installed automatically so there these actions are no longer necessary, unless you want to try out a more recent version..
---
- See also here: Xcode, GCC, and Homebrew, alternative package with gcc for OSX Lion at Kenneth Reitz' OSX GCC Installer page