New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Installing pdksh


Post Reply New Thread Subscribe

 
Thread Tools
gatorparrots
Guest
 
Posts: n/a

ksh for OS X
AT&T Research has a pre-compiled Darwin binary of ksh available for those wishing to try out a so-called scripting shell:
http://www.research.att.com/~gsf/cgi-bin/d...n=list&name=ksh
However, the AT&T version does not come with a man page and may generate locale errors under Darwin/OS X. Therefore, I suggest installing an alternative. If you want to try ksh on OS X, you can install pdksh (a korn shell clone) like so:
curl -O ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-5.2.14.tar.gz
gnutar -xzf pdksh-5.2.14.tar.gz
cd pdksh-5.2.14
curl -O ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-5.2.14-patches.1
curl -O ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-5.2.14-patches.2
patch < pdksh-5.2.14-patches.1
patch < pdksh-5.2.14-patches.2
./configure --prefix=/usr/local
make
sudo -s
make install
echo "/usr/local/bin/ksh" >> /etc/shells
exit

Available Shells in OS X
On OS X 10.2, the default shell is tcsh. Here is a list of the provided shells:
/bin/bash
/bin/csh
/bin/sh
/bin/tcsh
/bin/zsh

(sh is actually bash running in sh compatibility mode; ksh can be invoked in zsh, but only in compatibility mode)

bash was not included in 10.1.x allegedly due to licensing concerns on Apple's part. Now it is part of the shipping shell choices, although it has not yet been blessed with the default shell assignment status (as has tcsh).
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
what is the default shell in OS X? Is it bash? I like the RedHat default, which I think is bash. Mainly the colored shell is my main reason for asking

Emrys
Community Administrator / Moderator
MAC-FORUMS.COM - The Ultimate Source For Your Mac!
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Thanx gatorparrots, I was wondering about the other shells. I didn't have the time to look. Will have to try the pdksh you suggested.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks

Post Reply New Thread Subscribe


« REALbasic 5.0 | Install pure-ftpd »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Installing programs Ganda1f Switcher Hangout 3 01-10-2005 04:24 PM
Errors Installing OS X on 333mhz iMac swn5363 Apple Desktops 14 12-23-2004 03:48 PM
Installing AirPort in an iMac CBJzarace Apple Desktops 2 08-31-2004 05:17 PM
Installing downloads - no really... please dont laugh... too hard Bluewolf Switcher Hangout 9 02-18-2004 08:36 PM
Help with installing OS X meredith OS X - Operating System 4 09-12-2003 11:44 AM

All times are GMT -4. The time now is 02:18 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?