system/adelie-base: mksh as login shell fails to process /etc/profile
Bugzilla ID | 70 |
Reporter | Marek Benc |
Assignee | A. Wilcox (awilfox) |
Reported | 2018-07-01 07:46:13 -0500 |
Modified | 2018-08-02 00:41:20 -0500 |
Status | RESOLVED FIXED |
Version | 1.0-ALPHA6 |
Hardware | Adélie Linux / All |
Importance | Normal / normal |
Description
The jist of the issue is that mksh defines USER_ID instead of UID. A simple check added to the beginning of /etc/profile can solve the problem:
if [ -z "$UID" -a -n "$USER_ID" ]; then
UID=$USER_ID
fi