Installing Dash Shell on OS X Lion

Login or Register for Dates, Times and 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 *

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


* 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 for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Exclude dash in grep

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... (3 Replies)
Discussion started by: Subbeh
3 Replies

2. OS X (Apple)

Upgrade to Lion (Version 10.7.3) for MacBook Air

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! (7 Replies)
Discussion started by: Neo
7 Replies

3. OS X (Apple)

Video Contact Sheet on Lion from movies downloaded youtube MP4

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... (0 Replies)
Discussion started by: slashdotweenie
0 Replies

4. BSD

Default I need help installing a Shell CenteriM

Hello, first of all, my name is Christian and I hope you are very welcome. Well, my problem is that I would install the instant messaging client CenterIM in my shell, but it commands me or anything. Your operating system is FreeBSD. Thanks. (0 Replies)
Discussion started by: LzbeL
0 Replies

5. Shell Programming and Scripting

remove dash

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 (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

6. UNIX for Dummies Questions & Answers

awk to seperate a string that has a dash

Hello I have this string XYZ-ABC DFT-ERT QWE-TYU I want to get the part after the dash. how to do that? thanks (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

7. UNIX for Dummies Questions & Answers

ignoring a dash in file name

so i have a simple file called -x and i need it renamed to x now i dont understand why when using the most basic methods, only the code mv ./-x x changes the file name while using any other type of escape characters around the dash, such as single/double quotations or backslash, doesnt. ... (5 Replies)
Discussion started by: LumpSum
5 Replies

8. UNIX for Dummies Questions & Answers

dash after ampersant

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! (2 Replies)
Discussion started by: csecnarf
2 Replies

9. Shell Programming and Scripting

double-dash options

I need to create a file that accepts arguments and options, and the options have to allow for single-dash options (-abc) and double-dash options (--help). What is the best way to do this? Getopt(s) is great for single-dash, but chokes on double-dash. Do I really need to save the arguments to a... (1 Reply)
Discussion started by: dhinge
1 Replies

Featured Tech Videos