OpenBSDs ksh for GNU/Linux
What is it?
The OpenBSD people have cleaned up and enhanced the original PD ksh with great features. E. g.
PS1=`\u@\h'
works like under bash (try this with a standard PD ksh).
So I ported the OpenBSD version of ksh to GNU/Linux.
What's new?
In Version 0.4.1 from 27.08.2010
- Fixed a bug regarding building with older glibc and ISOC99
In Version 0.4 from 23.08.2010
- Sync'ed with ksh from OpenBSD 4.7
- Ported to GNU autotools (no more BSD make/pmake dependency to build, hooray)
- replaced strlcpy with strncpy and strlcat with strncat (no strlcpy/strlcat in GNU glibc)
- documented changes in oksh.diff
In Version 0.3
- Synced with latest OpenBSD CVS
- Licensed under GPLv3
In Version 0.2
- Removed all code from MirOS's mksh because of license problems
- Removed internal mknod builtin command.
Even in the OpenBSD CVS it is mentioned that a builtin
mknod is against unix philosophy, so I fail to see the
point in this.
Download
Here are the sources and md5sum.
To build and install use the usual ./configure && make && make install.
There is a PKGBUILD for Arch Linux
FAQ
- Cursor keys for scrolling through the history aren't working
Do you have EDITOR variable set to vi,vim or something similar? Then ksh switches to vi mode, where this feature isn't available.
Do "set -o emacs" in your .profile, and it should work like you're expecting