26.09.2018 - bash is interactive, allowing a shell script or a startup file to test this state. When an interactive shell that is not a login shell is started, bash . If you're not in interactive mode, it will typically tell you something like "not a tty"..