4 ms·
On linux the $SHELL variable is set by login(1) and not the shell itself. I think this is the case for BSD too. See: https://man.archlinux.org/man/login.1 htt
by SushiHippie 3y ago
On linux the $SHELL variable is set by login(1) and not the shell itself. I think this is the case for BSD too.
See:
https://man.archlinux.org/man/login.1 https://man.archlinux.org/man/login.1
> The environment variable values for $HOME, $USER, $SHELL, $PATH, $LOGNAME, and $MAIL are set according to the appropriate fields in the password entry.
- adrian_b 3y agoTrue. For instance I have "/bin/bash" in passwd, but I always switch to zsh. $SHELL remains "/bin/bash".