mksh 50e-2ubuntu1 (amd64 binary) in ubuntu xenial
mksh is the successor of the Public Domain Korn shell (pdksh),
a Bourne/POSIX compatible shell which is largely similar to the
original AT&T Korn Shell (ksh88/ksh93).
It includes bug fixes and feature improvements, in order to produce a
modern, robust shell good for interactive and especially script use.
mksh has UTF-8 support (in string operations and the Emacs editing
mode). The code has been cleaned up and simplified, bugs fixed,
standards compliance added, and several enhancements (for extended
compatibility to other modern shells, as well as a couple of its
own) are available.
This shell is Debian Policy 10.4 compliant and works as /bin/sh on
Debian systems (use the /bin/lksh executable) and is a good rescue
and initrd shell (consider the /bin/mksh-static executable).
.
The mksh binary is a complete, full-featured shell. If called as sh,
it enables a compatibility mode and some more controversial features
from POSIX, but still provides the “consistent across all platforms”
guarantee, using 32-bit integers for arithmetics.
.
The mksh-static binary is a version of mksh, linked against klibc or
dietlibc (if they exist for that Debian architecture and are usable)
and optimised for small code size, for example for use on initrd or
initramfs images, installation or rescue systems, or /bin/sh on slow
architectures. Otherwise, it is similar to the mksh binary.
It omits some leaf features to be even smaller.
.
The lksh binary is a script shell based on mksh intended to run old
ksh88 and pdksh scripts, but not for interactive use. When used as
/bin/sh it follows POSIX most closely, including use of the host’s
“long” C data type for arithmetics. It also contains kludges so it
can run as /bin/sh on Debian, where many packages ship buggy/broken
maintainer scripts, such as including a rudimentary printf(1) builtin.
.
A sample ~/.mkshrc is included in /usr/share/
provided as /etc/mkshrc conffile, which is sourced by another file
/etc/skel/.mkshrc users are recommended to copy into their home.
Details
- Package version:
- 50e-2ubuntu1
- Status:
- Superseded
- Component:
- main
- Priority:
- Optional
Downloadable files
- mksh_50e-2ubuntu1_amd64.deb (376.9 KiB)