Public bug reported:
Make dot.mkshrc (and prt.mkshrc) robust:
• work with “set -e” and “set -u”, often used in Debian
• not suck with “set -x”, well not much
• work with read-only filesystem, in particular no $TMPDIR (pointed out by
Natureshadow)
‣ especially relevant for Android /system/etc/mkshrc
It's already mostly alias-proof and function-proof¹, thankfully.
This is especially relevant for both being /bin/sh (or /system/bin/sh
ofc) and root's login shell, hence importance High where it'd otherwise
be Medium.
① Assuming the user is not stupid and defines shell functions named
“return”, “typeset”, “command”, etc. – i.e. POSIX builtins and specials
plus the ksh “typeset” one.
** Affects: mksh
Importance: High
Status: Triaged
--
You received this bug notification because you are a member of mksh
Mailing List, which is subscribed to mksh.
Matching subscriptions: mkshlist-to-mksh-bugmail
https://bugs.launchpad.net/bugs/1441853
Title:
dot.mkshrc robustness
Status in The MirBSD Korn Shell:
Triaged
Bug description:
Make dot.mkshrc (and prt.mkshrc) robust:
• work with “set -e” and “set -u”, often used in Debian
• not suck with “set -x”, well not much
• work with read-only filesystem, in particular no $TMPDIR (pointed out by
Natureshadow)
‣ especially relevant for Android /system/etc/mkshrc
It's already mostly alias-proof and function-proof¹, thankfully.
This is especially relevant for both being /bin/sh (or /system/bin/sh
ofc) and root's login shell, hence importance High where it'd
otherwise be Medium.
① Assuming the user is not stupid and defines shell functions named
“return”, “typeset”, “command”, etc. – i.e. POSIX builtins and
specials plus the ksh “typeset” one.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mksh/+bug/1441853/+subscriptions