Assertion: bash | /r/HasProperty | interactive
Facets:
Source sentences:
text: PS1 (command prompt string) is set and $- includes i if bash is interactive, allowing a shell script or a startup file to test this state.
text: Bash is considered an interactive shell when its standard input and error are connected to a terminal (for example, when run in a terminal emulator), and it is not started with the -c option or non-option arguments (for example, bash script ).