macOS
brew install mkshlocal Homebrew formula metadata
sudo port install mkshMacPorts ports tree · shells/mksh/Portfile · 来源: api.github.com
安装
brew install mkshlocal Homebrew formula metadata
sudo port install mkshMacPorts ports tree · shells/mksh/Portfile · 来源: api.github.com
sudo apk add mkshAlpine Linux edge package indexes · mksh · 来源: dl-cdn.alpinelinux.org
sudo dnf install mkshFedora Rawhide package metadata · mksh · 来源: dl.fedoraproject.org
nix profile install nixpkgs#mkshnixpkgs package indexes · pkgs/by-name/mk/mksh/package.nix · 来源: api.github.com
sudo zypper install mkshopenSUSE Tumbleweed package metadata · mksh · 来源: download.opensuse.org
概览
MirBSD Korn Shell
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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/shells可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mksh | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://mbsd.evolvis.org/mksh.htm
安装元数据
| 软件包键 | brew:mksh |
|---|---|
| 版本 | 59c |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mksh |
| 主页 | https://mbsd.evolvis.org/mksh.htm |
| 仓库 | https://www.mirbsd.org/cvs.cgi/src/bin/mksh |
| 上游文档 | https://mbsd.evolvis.org/mksh.htm |
| 许可证 | MirOS |
| 源码归档 | https://mbsd.evolvis.org/MirOS/dist/mir/mksh/mksh-R59c.tgz |
| Bottle | 可用 (于 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 | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 mksh来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.