Am Montag, 19. März 2018, 14:51:55 CET schrieb Andreas Schwab:
On Mär 19 2018, Peter Suetterlin
wrote: On 20180312, bash-4.4-103.1, 'bash -l' *does* read ~/.bashrc
On 20180313, bash-4.4-103.2, 'bash -l' does *not* read ~/.bashrc
Nothing mentioned in the changelog...
The sources didn't change at all, this is just a rebuild.
Andreas.
Hmmm... I am seeing exactly the other side of the story: When I sshfs-mount a
remote server, the .bashrc is executed/sourced without leaving a trace in the
log files that someone has logged in. Thus I can execute commands and change
files without a trace in w, who or last log. Seems weird to me.
I found out because I have a snippet in .bashrc that sends a mail upon login -
similar to this:
echo 'Login on' `hostname` `date` `who`| mail -s "Login on `hostname` `who |
grep <myusername> | awk '{print $5}'`"