macOS
brew install mkshlocal Homebrew formula metadata
sudo port install mkshMacPorts ports tree · shells/mksh/Portfile · source: api.github.com
brew
MirBSD Korn Shell. Version 59c via Homebrew; verified from local package data.
install
brew install mkshlocal Homebrew formula metadata
sudo port install mkshMacPorts ports tree · shells/mksh/Portfile · source: api.github.com
sudo apk add mkshAlpine Linux edge package indexes · mksh · source: dl-cdn.alpinelinux.org
sudo apt install mkshDebian stable package indexes · mksh · source: deb.debian.org
sudo dnf install mkshFedora Rawhide package metadata · mksh · source: dl.fedoraproject.org
nix profile install nixpkgs#mkshnixpkgs package indexes · pkgs/by-name/mk/mksh/package.nix · source: api.github.com
sudo zypper install mkshopenSUSE Tumbleweed package metadata · mksh · source: download.opensuse.org
overview
MirBSD Korn Shell
history
mksh, the MirBSD Korn Shell, is a Bourne/POSIX/Korn-style command interpreter and scripting language. The official site describes it as an actively developed free implementation of the Korn Shell programming language and successor to the Public Domain Korn Shell line.
The mksh FAQ traces the lineage from the Public Domain Bourne Shell and pdksh, through OpenBSD cleanup work, to MirBSD development beginning in 2002. After 2004, development added portability, parser reorganization, bug fixes, and features influenced by ksh93, bash, zsh, BSD csh, and POSIX work.
The official mksh page lists R59c from October 31, 2020 as the current version and provides signed source distributions plus instructions for CVS HEAD.
mksh became the system shell in several operating systems and Linux distributions. The FAQ says it is used as Android's system shell for startup, background, and user-invoked commands.
Its broad packaging footprint across Homebrew, Debian, Ubuntu, Alpine, Fedora, Nix, MacPorts, and SUSE reflects a mature portable shell rather than a platform-specific utility.
The mksh manual describes it as a command interpreter for both interactive and shell-script use, with a command language that is a superset of sh and POSIX shell and largely compatible with the original Korn shell.
Interactive users normally use `~/.mkshrc` or `$ENV`; login shells also process profile files. Packagers commonly install `dot.mkshrc` into `/etc/skel/.mkshrc` or `/etc/mkshrc` with a user-editable wrapper.
mksh matters to package nerds because shells sit at the boundary between user environment, system boot scripts, and package maintainer scripts. It is a small but consequential runtime whose packaging choices affect `/bin/sh` compatibility, skeleton rc files, Android system behavior, and historical Korn shell compatibility.
It is also a case where the official project explicitly labels its GitHub mirror unofficial, so package metadata should prefer the MirBSD homepage, signed distfiles, manual, FAQ, and CVS/CVSweb sources.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/skel/.mkshrc/etc/mkshrc~/.mkshrc~/.profile/etc/profile/etc/suid_profile/etc/shellsexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
mksh | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://mbsd.evolvis.org/mksh.htm
install metadata
| Package key | brew:mksh |
|---|---|
| Version | 59c |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mksh |
| Homepage | https://mbsd.evolvis.org/mksh.htm |
| Repository | https://www.mirbsd.org/cvs.cgi/src/bin/mksh |
| Upstream docs | https://mbsd.evolvis.org/mksh.htm |
| License | MirOS |
| Source archive | https://mbsd.evolvis.org/MirOS/dist/mir/mksh/mksh-R59c.tgz |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mksh |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
mksh 59c-41+b2
MirBSD Korn Shell
sudo apt install mkshmksh
nix profile install nixpkgs#mkshmksh 59c-37
MirBSD Korn Shell
sudo apt install mkshmksh 59c-r4
MirBSD Korn Shell
sudo apk add mkshmksh-doc 59c-r4
MirBSD Korn Shell (documentation)
sudo apk add mksh-docmksh 59c-15.fc44
MirBSD enhanced version of the Korn Shell
https://www.mirbsd.org/mksh.htm
sudo dnf install mkshmksh 59c-7.1
MirBSD Korn Shell
https://mbsd.evolvis.org/mksh.htm
sudo zypper install mkshmksh
sudo port install mkshsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.