Bash manual defines a shell as interactive if "$PS1" is set, there's no need to check it against a specific string.
2.7 KiB
2.7 KiB
Bash manual defines a shell as interactive if "$PS1" is set, there's no need to check it against a specific string.