Nico Kadel-Garcia wrote on Sat, Apr 02, 2011 at 12:23:15 -0400:
> Here's the Red Hat published bug report on it, that goes into more
> detail and workaround attempts, back at Fedora 9 and the change from
> OpenSSH 5.0p1 to OpenSSH 5.1p1.
> 
>     https://bugzilla.redhat.com/show_bug.cgi?id=458839
> 
> The key is here:
> 
>       The .bashrc should be read by bash only when the shell is
> interactive or when the stdin is a socket. In the 5.0p1 and older
> versions the stdin was socket but that caused other problems. Now the
> stdin is pipe and thus the .bashrc is not read
> 
> This looks like a consequence of a reasonable change in sshd, but it's
> caused issues. And the funky flipping workarounds proposed to restore
> this behavior quietly ignore the basic principle of "do *NOT* read
> .bashrc for non-login sessions" which is right in the bash
> documentation.

Thanks for the summary, now I understand what the change and issue are.

Reply via email to