#1144076 mksh: ENV is not expanded during startup

Package:
mksh
Source:
mksh
Description:
MirBSD Korn Shell
Submitter:
cr
Date:
2026-08-10 18:35:02 UTC
Severity:
normal
#1144076#5
Date:
2026-08-10 18:33:08 UTC
From:
To:
mksh does not subject ENV to parameter expansion during startup,
which is in disagreement with its man page and POSIX.
In contrast dash, bash, and ksh93 follow POSIX in this regard.

echo echo hello world >"$HOME/envtest"
# Note the single-quotes
ENV='$HOME/envtest' dash # echos hello world
ENV='$HOME/envtest' mksh # no echo