|
From: | Nicholas Chambers |
Subject: | Re: [Help-bash] The execution of /etc/bash.bashrc and ~/.bashrc for non interactive shells |
Date: | Thu, 30 Mar 2017 09:30:34 -0500 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 3/30/17 9:21 AM, Cristian Zoicas wrote:
~/.bashrc is a part of bash. If I recall correctly, /etc/bash.bashrc is not a part of bash. Instead, operating systems like Ubuntu modify the system bash so that rc file is sourced. If you build bash from source does it still happen?Hello all Can somebody explain the reasons behind the decision to allow bash to execute the files /etc/bash.bashrc and ~/.bashrc
if it is started remotely and non interactively? For example the command ssh address@hidden echo "this is a test" triggers the execution of the above mentioned files. Thank you Cristian
-- Nicholas Chambers Technical Support Specialist address@hidden 1.800.444.9267 www.lightspeedsystems.com
[Prev in Thread] | Current Thread | [Next in Thread] |