Comment 25 for bug 920749

Revision history for this message
In , Vincent Lefevre (vincent-vinc17) wrote :

(In reply to comment #22)
> If you execute command with bash then file ~/.bashrc isn't processed.
> It is fine bash to do same for ssh command - it is expected to be
> rejected from bash team. Ask you vendor to drop too.

There is a difference: when one executes a command with bash, the environment is already set up. When executing a command with ssh, it is useful to set up the environment before executing the command (AcceptEnv/SendEnv are too limited, since one generally wants an environment that is different from the client one -- in particular for the locales, which are not the same on the client side and on the server side). That's why it is useful to process the .bashrc file, and this is what Debian has chosen. This is the only way I can have correct locales (those I really want) on the remote host.