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 *
1. Download the dash tar ball (I used the latest version 0.5.7) here:
Index of /~herbert/dash/files
2. gunzip and untar the tar ball
3. cd to the dash source directory
4.
./configure
5.
make
6.
sudo make install
7. 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