or started with the -i option. PS1 is set and $- includes i if bash is interactive, allowing a shell script or a startup file to test this state. See testing_for_interactive_mode
Management
Argument
When invoking an interactive shell, you can set the positional parameters with the -s option of bash. See Bash