Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
C Roff Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CVS
.gitignore
.travis.yml
CONTRIBUTORS
LEGAL
NOTES
PROJECTS
README.md
README.pdksh
alloc.c
asprintf.c
c_ksh.c
c_sh.c
c_test.c
c_test.h
c_ulimit.c
charclass.h
config.h
configure
confstr.c
edit.c
edit.h
emacs.c
eval.c
exec.c
expand.h
expr.c
history.c
io.c
jobs.c
ksh.1
lex.c
lex.h
mail.c
main.c
misc.c
oksh.1
path.c
portable.h
prescue.h
profile
reallocarray.c
rescue.sh
sh.1
sh.h
shf.c
shf.h
siglist.c
signame.c
strlcat.c
strlcpy.c
strtonum.c
syn.c
table.c
table.h
trap.c
tree.c
tree.h
tty.c
tty.h
unvis.c
var.c
version.c
vi.c
vis.c
vis.h

README.md

oksh

Portable OpenBSD ksh(1).

Why?

Because all operating systems deserve a good shell.

Supported systems

oksh is known to run on the following Operating Systems:

  • OpenBSD
  • FreeBSD
  • DragonFly BSD
  • NetBSD
  • Mac OS X
  • Linux (glibc and musl)
  • Cygwin
  • Android (via Termux)
  • AIX (with major thanks to @tssva and @NattyNarwhal)

Running on a system not listed here? Add it and send a pull request!

Believed working

We believe that oksh will work on the following platforms, but testing is needed. Help is greatly appreciated and encouraged!

  • HPUX
  • Solaris

Supported compilers

oksh is known to build with the following C compilers:

Building with a compiler not listed here? Add it and send a pull request!

Packages

oksh is included in some package systems.

Using a package not listed here? Add it and send a pull request!

Dependencies

A C compiler that understands the long long type. 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.

A configure script that produces a POSIX 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).

License

The main Korn shell files are public domain (see LEGAL). Portability files are BSD or ISC licensed; see individual file headers for details.

Get a tarball

http://devio.us/~bcallah/oksh/oksh-20180502.tar.gz