invocation-option

--noprofile

Suppress login profile loading; does not remove inherited BASH_ENV.

Formal Syntax & Structure

bash syntaxbash
bash --noprofile --login -c command

Return Value

startup behavior

Suppress login profile loading; does not remove inherited BASH_ENV.

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