mksh

From Gentoo Wiki
Jump to: navigation, search

mksh is the MirBSD Korn Shell, an actively developed free implementation of the Korn Shell programming language and a successor to the Public Domain Korn Shell (pdksh). It is developed as part of the MirOS Project as native Bourne/POSIX/Korn shell for MirOS BSD, but also to be readily available under other UNIX-like operating systems. It targets users who desire a compact, fast, reliable, secure shell not cut off modern extensions, with unicode support.

Because of its speed, POSIX compliance, and advanced features, it is ideally suited for scripting. But it can serve very well as a login shell too. It is used as default shell on Android.

Installation

Emerge

Install mksh:

root #emerge --ask app-shells/mksh

Installed size is about 280K on an amd64 system (vs. 721K for bash-4).

Configuration

Set default login shell

To make mksh the default login shell, run:

user $chsh -s /bin/mksh

Files

Local

The local configuration file used is ~/.mkshrc — see /usr/share/doc/mksh-*/dot.mkshrc* for an example that is shipped with the package.

Removal

Unmerge

root #emerge --ask --depclean app-shells/mksh

See also

  • shell — a command-line interpreter that offers a text-based interface to users.

External resources