Package: mksh
Version: 59c-41+b2
Severity: normal
X-Debbugs-Cc: [email protected]

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

-- System Information:
Debian Release: 13.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.101+deb13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mksh depends on:
ii  libc6  2.41-12+deb13u3

Versions of packages mksh recommends:
ii  ed  1.21.1-1

mksh suggests no packages.

-- no debconf information

Reply via email to