bug-bash
[Top][All Lists]
Advanced

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

Re: .bashrc is sourced even for non-interactive shells (when run from ss


From: Linda Walsh
Subject: Re: .bashrc is sourced even for non-interactive shells (when run from sshd)
Date: Sun, 03 Jun 2012 01:02:17 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666



Pierre Gaston wrote:
In all your examples the shell will be called like: bash -c  'isatty 0
2'. If you use a bash compiled with the above option you can add 'ps
-p$$ -ocmd' at the top of your .bashrc to verify it.

They are all non-interactive because they are called with -c,
disregarding if they are connected to a terminal or not.
===
I see what you mean...

Wouldn't that '*doubly*' mean the .bashrc shouldn't be called?







reply via email to

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