bug-bash
[Top][All Lists]
Advanced

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

~/.bashrc not sourced for ssh commands on Archlinux


From: Ilya Basin
Subject: ~/.bashrc not sourced for ssh commands on Archlinux
Date: Wed, 24 Apr 2013 08:31:06 +0400

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?




reply via email to

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