Package: bash
Version: 4.2+dfsg-0.1
A few lines in your ~/.bashrc
case $- in
*i*)
;;
*)
echo "non-interactive mode"
;;
esac
echo "PS1 is \"$PS1\""
and a command like
ssh localhost ls -d .
show that ~/.bashrc is read in non-interactive mode. This is not
described in bash(1).
The man page describes in the "INVOCATION" paragraph under which
conditions the ~/.bashrc and others are read in interactive or
login mode. Reading .bashrc in non-interactive mode is not
mentioned.
$BASH_ENV is not set, of course. .bash_profile and others don't
read .bashrc, either.
It would be very nice if some bash guru shares his wisdom with
us and improves the documentation for this case. :-)
Many thanx
Harri
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]