Installing Dash Shell on OS X Lion


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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 http://developer.apple.com/downloads *

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.

---
* See also here: Xcode, GCC, and Homebrew, alternative package with gcc for OSX Lion at Kenneth Reitz' OSX GCC Installer page

Last edited by Scrutinizer; 03-16-2012 at 11:21 AM.. Reason: Thanks Scott..
These 5 Users Gave Thanks to Scrutinizer For This Post:
# 2  
Nice and simple, and works great, thanks!
# 3  
Installs to OSX Sierra, Version 10.12.2, mighty fine too, even with its many security locks.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Exclude dash in grep
Subbeh
Hi, I must be overlooking something, but I don't understand why this doesn't work. I'm trying to grep on a date, excluding all the lines starting with a dash: testfile: #2013-12-31 2013-12-31code: grep '^2013-12-31' testfileI'm expecting to see just the second line '2013-12-31' but I don't...... Shell Programming and Scripting
3
Shell Programming and Scripting
Upgrade to Lion (Version 10.7.3) for MacBook Air
Neo
Anyone running Lion on their Mac? I'm currently running Snow Leopard (v. 10.6.8) and have been hesitant to upgrade to 10.7.X. Anyone at all running Lion? Any experiences good or bad to report? Thanks!... OS X (Apple)
7
OS X (Apple)
Video Contact Sheet on Lion from movies downloaded youtube MP4
slashdotweenie
Hi I am running Lion with latest patches > uname -a Darwin wger.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 Installed mplayer, ffmpeg, gnu-getopt and ImageMagick through brew. I am unable to generate Video Contact...... OS X (Apple)
0
OS X (Apple)
remove dash
melanie_pfefer
hi I am using ksh #A="abc-def" #typeset -u B="$A" #echo $B ABC-DEF how to remove the dash? i.e. ABCDEF? thank you... Shell Programming and Scripting
1
Shell Programming and Scripting
dash after ampersant
csecnarf
Hi! I'm new in these forums and more or less new with Unix. So... here is the question: does anyone know where is redirected the output of a command when you put >&- after it? Does it means any standard file descriptor? Thanks!... UNIX for Dummies Questions & Answers
2
UNIX for Dummies Questions & Answers

Featured Tech Videos