Because all operating systems deserve a good shell.
oksh is known to run on the following Operating Systems:
- DragonFly BSD
- SoloBSD (as the default shell)
- Mac OS X
- Linux (glibc and musl)
- Android (via Termux)
- AIX (with major thanks to @tssva and @NattyNarwhal)
- IBM i PASE
Running on a system not listed here? Add it and send a pull request!
We believe that
oksh will work on the following platforms, but testing is needed.
Help is greatly appreciated and encouraged!
oksh is known to build with the following C compilers:
- clang (https://llvm.org/)
- gcc (https://gcc.gnu.org/)
- pcc (http://pcc.ludd.ltu.se/)
- cparser (https://pp.ipd.kit.edu/firm/)
- xlc (https://www.ibm.com/us-en/marketplace/ibm-c-and-c-plus-plus-compiler-family)
- Sun Studio compiler (https://www.oracle.com/technetwork/server-storage/developerstudio/overview/index.html)
Building with a compiler not listed here? Add it and send a pull request!
oksh is included in some package systems.
Using a package not listed here? Add it and send a pull request!
A C99 compiler is the easiest way to ensure that
oksh will build correctly.
Please see the list of C compilers above for a list of known working compilers.
Though not required, the
ncurses library will be used for screen clearing
routines if the library is found during the
configure stage. This can be
turned off by the user by passing the
--disable-curses flag to
configure script that produces a
Makefile is provided to
ease building and installation and can be run by:
$ ./configure $ make && sudo make install
In case of emergency
If you cannot execute
make for whatever reason, a rescue script,
rescue.sh, is available. This script contains nothing more than a
hand-written list of compiler invocations which will build
oksh in the
most basic and portable way possible. This rescue shell is perfectly
usable (as it is just an unoptimized build).
The main Korn shell files are public domain (see
Portability files are BSD or ISC licensed; see individual file headers
Get a tarball
See releases tab. The latest release is dated 20181009, which matches OpenBSD 6.4.