Hi.
$ cat ~/.bashrc
#
# ~/.bashrc
#
echo Im in .bashrc >&2
RHEL 6.0, bash 4.1.2
$ ssh localhost 'ps -f $$ && true'
Im in .bashrc
UID PID PPID C STIME TTY STAT TIME CMD
git 22295 22294 0 08:29 ? Ss 0:00 bash -c ps -f $$ && true
Archlinux, bash 4.2.42
$ ssh localhost 'ps -f $$ && true'
UID PID PPID C STIME TTY STAT TIME CMD
il 26539 26538 0 08:26 ? Ss 0:00 bash -c ps -f $$ && true
What can couse this? Manpage says: "Bash attempts to determine when it
is being run with its standard input connected to a network
connection". Is the detection broken?