Bash attempts to determine when it is being run with its standard input
connected to a a network connection, as if by the remote shell daemon,
usually rshd, or the secure shell daemon sshd. If bash determines it
is being run in this fashion, it reads and executes commands from
~/.bashrc and ~/.bashrc, if these files exist and are readable. It
will not do this if invoked as sh. The --norc option may be used to
inhibit this behavior, and the --rcfile option may be used to force
another file to be read, but rshd does not generally invoke the shell
with those options or allow them to be specified.
The computers at the university I attend/work at have the same bug. They are running Debian 6.0.4. Some terminal output:
[12:18] salt:~$ lsb_release -dr ftp.se. debian. org/debian/ squeeze/main amd64 Packages install60/ squeeze/main amd64 Packages dpkg/status ftp.se. debian. org/debian/ squeeze/main amd64 Packages install60/ squeeze/main amd64 Packages dpkg/status
Description: Debian GNU/Linux 6.0.4 (squeeze)
Release: 6.0.4
Codename: squeeze
[12:18] salt:~$ apt-cache policy bash{,-doc}
bash:
Installed: 4.1-3
Candidate: 4.1-3
Version table:
*** 4.1-3 0
500 http://
500 file:/import/
100 /var/lib/
bash-doc:
Installed: 4.1-3
Candidate: 4.1-3
Version table:
*** 4.1-3 0
500 http://
500 file:/import/
100 /var/lib/
[12:18] salt:~$ man bash | tail -n+187 | head -11
Bash attempts to determine when it is being run with its standard input
connected to a a network connection, as if by the remote shell daemon,
usually rshd, or the secure shell daemon sshd. If bash determines it
is being run in this fashion, it reads and executes commands from
~/.bashrc and ~/.bashrc, if these files exist and are readable. It
will not do this if invoked as sh. The --norc option may be used to
inhibit this behavior, and the --rcfile option may be used to force
another file to be read, but rshd does not generally invoke the shell
with those options or allow them to be specified.
[12:18] salt:~$