Results 1 to 3 of 3
  1. #1
    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&#39;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).

  2. #2
    Installing pdksh
    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    Specs:
    17" iMac G4 800MHz 1GB RAM
    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!

  3. #3
    Installing pdksh
    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    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
    Talking
    Thanx gatorparrots, I was wondering about the other shells. I didn&#39;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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Installing OS X 10.6 over 10.5
    By BDD888 in forum OS X - Operating System
    Replies: 5
    Last Post: 04-18-2013, 02:38 PM
  2. Installing XP
    By KHRIZZY in forum Running Windows (or anything else) on your Mac
    Replies: 3
    Last Post: 06-06-2011, 02:19 PM
  3. Installing gcc on Mac OSX without re-installing XCode
    By jigglypuff in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 02-26-2010, 12:16 AM
  4. Replies: 6
    Last Post: 11-01-2009, 07:03 PM
  5. Installing new OS
    By poobah in forum OS X - Operating System
    Replies: 1
    Last Post: 02-24-2005, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •