Displaying 1 result from an estimated 1 matches for "ssh_source_bashrc".
2011 Jun 30
4
sshd and .bashrc
...the fact that bash
contains the following in run_startup_files(), which
gets called to determine which dotfiles (if any) to
source ...
if (interactive_shell == 0 && no_rc == 0 && login_shell == 0 &&
act_like_sh == 0 && command_execution_string)
{
#ifdef SSH_SOURCE_BASHRC
run_by_ssh = (find_variable ("SSH_CLIENT") != (SHELL_VAR *)0) ||
(find_variable ("SSH2_CLIENT") != (SHELL_VAR *)0);
#else
run_by_ssh = 0;
#endif
/* If we were run by sshd or we think we were run by rshd, execute
~/.bashrc if we are a top-level shell. */...