/bin/sh shells cannot read /etc/profile.d/path.sh
Open
3.x
Backlog
Bug
- Dominant language
- Python
- Stars
- 888
- Forks
- 314
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 43
Description
* Description:
A script with header `#/bin/sh -l` or a user logging in with this shell will have a broken environment on ubuntu (22.04) as `/bin/sh` is a symlink to `dash` and `dash` cannot read the `bash` syntax in `/etc/profile.d/path.sh`
* Affected versions
PC-version: 3.*
Contributor guide
Research direction
Start by reproducing the login-shell behavior on Ubuntu 22.04 with /bin/sh and inspect /etc/profile.d/path.sh for the bash syntax that dash cannot read. Done means a /bin/sh -l script or user login receives a working environment without breaking the existing bash behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, shell, ubuntu
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100