3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/shells
Daniel Fullmer 0a8007498f bash: use default PATH in FHS environments
If bash is executed within an environment where PATH is not set, it uses
the DEFAULT_PATH_VALUE compiled into bash to set PATH. In nixpkgs we set
this to /no-such-path by default. This makes sense in a nixpkgs/NixOS
environment since paths like /bin or /usr/bin should not be used.
However, when bash is used inside an FHS environment, this produces
results that differ from distributions which follow the FHS standard.

Before this change:
$ steam-run env -i /bin/bash -c 'echo $PATH'
/no-such-path

After this change:
$ steam-run env -i /bin/bash -c 'echo $PATH'
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
2022-02-27 15:59:39 -08:00
..
any-nix-shell
bash bash: use default PATH in FHS environments 2022-02-27 15:59:39 -08:00
dash
dgsh
elvish
es
fish fish: fix cross compile 2022-02-20 09:51:20 -06:00
hilbish
ion
jush
ksh
liquidprompt liquidprompt: 2.0.3 -> 2.0.4 2022-02-12 20:06:29 -08:00
loksh
mksh
mrsh
nsh
nushell nushell: 0.43.0 -> 0.44.0 2022-02-12 18:58:57 +00:00
oh
oil oil: 0.9.7 -> 0.9.8 2022-02-25 10:57:50 -08:00
oksh
pash
powershell
rc
rush rush: 2.1 -> 2.2 2022-02-22 23:42:15 +00:00
scponly
tcsh
xonsh
yash
zsh Merge pull request #161117 from r-ryantm/auto-update/pure-prompt 2022-02-24 22:22:22 +01:00