Skip to main content

Module login_shell

Module login_shell 

Source

Functions§

login_shell
The shell this account’s terminal starts: $SHELL when it names a program this account can run (the person’s preference, and how fish starts here when it is the login shell), then the login shell the passwd database records when that runs, then /bin/sh — a shell a person has since uninstalled never leaves them without a terminal. Windows uses COMSPEC, falling back to cmd.exe.
login_shell_from_passwd
login_shell_with
login_shell with its sources and the program check injected, testable without mutating process-global state (which would race parallel tests).