G
gatorparrots
Guest
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).
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).