Installing Dash Shell on OS X Lion

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..

---

5 Likes

Nice and simple, and works great, thanks!

Installs to OSX Sierra, Version 10.12.2, mighty fine too, even with its many security locks.