aws / aws/aws-parallelcluster

/bin/sh shells cannot read /etc/profile.d/path.sh

Open
#5,760 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.