Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Installing pdksh
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="gatorparrots" data-source="post: 2857"><p><strong>ksh for OS X</strong></p><p>AT&T Research has a pre-compiled Darwin binary of ksh available for those wishing to try out a so-called scripting shell:</p><p><a href="https://www.research.att.com/" target="_blank">http://www.research.att.com/~gsf/cgi-bin/d...n=list&name=ksh</a></p><p>However, the AT&T version does not come with a man page and may generate <strong>locale</strong> 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 <strong>korn</strong> shell clone) like so:</p><p><span style="color: blue">curl -O ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-5.2.14.tar.gz</span></p><p><span style="color: blue">gnutar -xzf pdksh-5.2.14.tar.gz</span></p><p><span style="color: blue">cd pdksh-5.2.14</span></p><p><span style="color: blue">curl -O ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-5.2.14-patches.1</span></p><p><span style="color: blue">curl -O ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-5.2.14-patches.2</span></p><p><span style="color: blue">patch < pdksh-5.2.14-patches.1</span></p><p><span style="color: blue">patch < pdksh-5.2.14-patches.2</span></p><p><span style="color: blue">./configure --prefix=/usr/local</span></p><p><span style="color: blue">make</span></p><p><span style="color: blue">sudo -s</span></p><p><span style="color: blue">make install</span></p><p><span style="color: blue">echo "/usr/local/bin/ksh" >> /etc/shells</span></p><p><span style="color: blue">exit</span></p><p></p><p><strong>Available Shells in OS X</strong></p><p>On OS X 10.2, the default shell is <strong>tcsh</strong>. Here is a list of the provided shells:</p><p><strong>/bin/bash</strong></p><p><strong>/bin/csh</strong></p><p><strong>/bin/sh</strong></p><p><strong>/bin/tcsh</strong></p><p><strong>/bin/zsh</strong></p><p>(sh is actually bash running in sh compatibility mode; ksh can be invoked in zsh, but only in compatibility mode)</p><p></p><p><strong>bash</strong> 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 <strong>tcsh</strong>).</p></blockquote><p></p>
[QUOTE="gatorparrots, post: 2857"] [B]ksh for OS X[/B] AT&T Research has a pre-compiled Darwin binary of ksh available for those wishing to try out a so-called scripting shell: [URL='https://www.research.att.com/']http://www.research.att.com/~gsf/cgi-bin/d...n=list&name=ksh[/URL] However, the AT&T version does not come with a man page and may generate [B]locale[/B] 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 [B]korn[/B] shell clone) like so: [COLOR=blue]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[/COLOR] [B]Available Shells in OS X[/B] On OS X 10.2, the default shell is [B]tcsh[/B]. Here is a list of the provided shells: [B]/bin/bash /bin/csh /bin/sh /bin/tcsh /bin/zsh[/B] (sh is actually bash running in sh compatibility mode; ksh can be invoked in zsh, but only in compatibility mode) [B]bash[/B] 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 [B]tcsh[/B]). [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Installing pdksh
Top