invocation-option
--rcfile
Select an alternate interactive rc file instead of ~/.bashrc. System rc behavior can vary; manual only.
Formal Syntax & Structure
bash syntaxbash
bash --rcfile file -iReturn Value
context-dependent
Select an alternate interactive rc file instead of ~/.bashrc. System rc behavior can vary; manual only.
Working Example
Example Snippetbash
printf "%s\n" "PS1=practice" > lab.rc# In a reviewed disposable environment: bash --rcfile "$PWD/lab.rc" -i