all options
squeeze  ] [  squeeze-backports  ] [  wheezy  ] [  wheezy-backports  ] [  jessie  ] [  stretch  ] [  sid  ]
[ Source: mksh  ]

Package: mksh (50f-1 and others)

Links for mksh

Screenshot

Debian Resources:

Download Source Package mksh:

Maintainer:

External Resources:

Similar packages:

MirBSD Korn Shell

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. It provides a “consistent across all platforms” guarantee, using 32-bit integers for arithmetics, possibly deviating from POSIX.

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. Except for omitting some features to be smaller, it is similar to the mksh binary otherwise.

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 beyond what Policy dictates, to work around bugs in maintainer scripts and LSB init scripts shipped by many packages, such as including a rudimentary printf(1) builtin, permitting a shell function to be named stop overriding the default alias, more loose interpretation of shell extglibs, etc.

A sample ~/.mkshrc is included in /usr/share/doc/mksh/examples and provided as /etc/mkshrc conffile, which is sourced by another file /etc/skel/.mkshrc users are recommended to copy into their home.

Tags: System Administration: System Boot, System Installation, Login, Software Development: devel::interpreter, devel::lang:posix-shell, Implemented in: C, User Interface: interface::commandline, interface::shell, Made Of: Manuals in Nroff Format, Role: Program, Scope: scope::application, suite::bsd, Purpose: Need an extra tag, Login, World Wide Web: web::cgi, works-with-format::plaintext, Works with: works-with::people, works-with::software:running, works-with::software:source, works-with::text, Unicode

Other Packages Related to mksh

  • depends
  • recommends
  • suggests
  • enhances

Download mksh

Download for all available architectures
Architecture Version Package Size Installed Size Files
alpha (unofficial port) 50f-1 475.8 kB1,167.0 kB [list of files]
amd64 50f-1 428.4 kB829.0 kB [list of files]
arm64 50f-1 407.9 kB869.0 kB [list of files]
armel 50f-1 403.1 kB853.0 kB [list of files]
armhf 50f-1 406.3 kB663.0 kB [list of files]
hppa (unofficial port) 50f-1 421.5 kB934.0 kB [list of files]
hurd-i386 50f-1 717.1 kB1,690.0 kB [list of files]
i386 50f-1 417.0 kB802.0 kB [list of files]
kfreebsd-amd64 50f-1 644.8 kB1,462.0 kB [list of files]
kfreebsd-i386 50f-1 624.1 kB1,376.0 kB [list of files]
m68k (unofficial port) 50f-1 394.4 kB806.0 kB [list of files]
mips 50f-1 417.4 kB1,005.0 kB [list of files]
mipsel 50f-1 420.8 kB1,005.0 kB [list of files]
powerpc 50f-1 407.5 kB962.0 kB [list of files]
powerpcspe (unofficial port) 50d-5 408.6 kB926.0 kB [list of files]
ppc64 (unofficial port) 50f-1 418.2 kB1,143.0 kB [list of files]
ppc64el 50f-1 419.5 kB1,043.0 kB [list of files]
s390x 50f-1 427.4 kB1,005.0 kB [list of files]
sh4 (unofficial port) 50f-1 669.3 kB1,274.0 kB [list of files]
sparc64 (unofficial port) 50f-1 414.3 kB966.0 kB [list of files]
x32 (unofficial port) 50f-1 432.9 kB824.0 kB [list of files]