SHELL env var points to bash instead of zsh #130

Open
opened 2022-01-13 08:58:32 +00:00 by hasufell · 1 comment
hasufell commented 2022-01-13 08:58:32 +00:00 (Migrated from gitlab2.manjaro.org)

Manjaro seems to install both bash (login shell) and zsh (user preferred shell, e.g. when opening a console).

The posix standard demands that the SHELL env var points to the user's preferred shell:

This variable shall represent a pathname of the user's preferred command language interpreter. If this interpreter does not conform to the Shell Command Language in the Shell and Utilities volume of IEEE Std 1003.1-2001, Chapter 2, Shell Command Language, utilities may behave differently from those described in IEEE Std 1003.1-2001.

However, SHELL still points to bash. This env var is commonly set by login on unix systems, but that doesn't mean that's the only place supposed to set it.

This impacts user-visible behavior of my installer: https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/302

Note that I'm not a Manjaro user and am not running any Manjaro system, so I cannot provide technical feedback or system information.

Manjaro seems to install both `bash` (login shell) and `zsh` (user preferred shell, e.g. when opening a console). The posix standard demands that the `SHELL` env var [points to the user's preferred shell](https://pubs.opengroup.org/onlinepubs/009696899/basedefs/xbd_chap08.html): > This variable shall represent a pathname **of the user's preferred command language interpreter**. If this interpreter does not conform to the Shell Command Language in the Shell and Utilities volume of IEEE Std 1003.1-2001, Chapter 2, Shell Command Language, utilities may behave differently from those described in IEEE Std 1003.1-2001. However, SHELL still points to bash. This env var is commonly set by [`login`](https://unix.stackexchange.com/questions/277944/what-sets-the-shell-environment-variable) on unix systems, but that doesn't mean that's the only place supposed to set it. This impacts user-visible behavior of my installer: https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/302 Note that I'm not a Manjaro user and am not running any Manjaro system, so I cannot provide technical feedback or system information.
yochananmarqos1 commented 2024-06-26 17:08:15 +00:00 (Migrated from gitlab2.manjaro.org)

assigned to @LordTermor

assigned to @LordTermor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
profiles/desktop-settings#130
No description provided.