Pierre Gaston wrote:
In all your examples the shell will be called like: bash -c 'isatty 0 2'. If you use a bash compiled with the above option you can add 'ps -p$$ -ocmd' at the top of your .bashrc to verify it. They are all non-interactive because they are called with -c, disregarding if they are connected to a terminal or not.
=== I see what you mean... Wouldn't that '*doubly*' mean the .bashrc shouldn't be called?