bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ~/.bashrc not sourced for ssh commands on Archlinux


From: Pierre Gaston
Subject: Re: ~/.bashrc not sourced for ssh commands on Archlinux
Date: Wed, 24 Apr 2013 08:55:30 +0300

On Wed, Apr 24, 2013 at 7:31 AM, Ilya Basin <basinilya@gmail.com> wrote:

> Hi.
>
>     $ cat ~/.bashrc
>     #
>     # ~/.bashrc
>     #
>     echo Im in .bashrc >&2
>
> RHEL 6.0, bash 4.1.2
>     $ ssh localhost 'ps -f $$ && true'
>     Im in .bashrc
>     UID        PID  PPID  C STIME TTY      STAT   TIME CMD
>     git      22295 22294  0 08:29 ?        Ss     0:00 bash -c ps -f $$ &&
> true
>
> Archlinux, bash 4.2.42
>     $ ssh localhost 'ps -f $$ && true'
>     UID        PID  PPID  C STIME TTY      STAT   TIME CMD
>     il       26539 26538  0 08:26 ?        Ss     0:00 bash -c ps -f $$ &&
> true
>
>
> What can couse this? Manpage says: "Bash attempts to determine when it
> is being run with its standard input connected to a network
> connection". Is the detection broken?
>
>
With newer sshd stdin is not connected to a socket.
There is a compile time option to cause bash to check for the SSH_CLIENT[2]
environment variables but it seems arch doesn't enable it for its build.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]