Package: mksh Version: 59c-8 Severity: normal Like with ksh93, output error is not checked for some builtins (at least pwd and ulimit), e.g. after closing stdout.
$ exec >&- $ for i in echo pwd print ulimit; do echo "[$i]" >&2; $i; echo $? >&2; done [echo] 1 [pwd] 0 [print] 1 [ulimit] 0 Note also that for pwd, POSIX[*] says: If an error is detected, output shall not be written to standard output, a diagnostic message shall be written to standard error, and the exit status is not zero. so that one would expect a diagnostic message (and I think that one should also get one for the other builtins). [*] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pwd.html Note: Debian bug for ksh93: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990264 -- System Information: Debian Release: 11.0 APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'testing-security'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages mksh depends on: ii libc6 2.31-12 Versions of packages mksh recommends: ii ed 1.17-1 mksh suggests no packages. -- no debconf information -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)