invocation-option

--login

Request login mode, independently of interactivity. The fixture suppresses actual login profiles.

Formal Syntax & Structure

bash syntaxbash
bash --login -c command

Return Value

shell mode

Request login mode, independently of interactivity. The fixture suppresses actual login profiles.

Working Example

Example Snippetbash
bash --noprofile --norc -c 'if shopt -q login_shell; then echo login; else echo nonlogin; fi'bash --noprofile --norc --login -c 'if shopt -q login_shell; then echo login; else echo nonlogin; fi'
Bash Reference