bash bug?: nested "bash --login -i" doesn't run /etc/profile (still runs ~/.bash_profile)
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Tue Oct 5 22:36:00 GMT 2010
On 10/5/2010 10:12 AM, Daniel Barclay wrote:
> Larry Hall (Cygwin) wrote:
>> On 10/4/2010 12:19 PM, Daniel Barclay wrote:
>>> I wrote:
>>>> The behavior of "bash --login -i" seems to vary depending on whether
>>>> it is a "root" invocation or a nested invocation of bash. This is
>>>> inconsistent with the description man bash, and seems to be a bug.
>>>
>>> Can anyone confirm (or "anti-confirm") this behavior?:
>>>
>>>
>>>> Details:
>>>>
>>>>
>>>> When bash is started using the Cygwin shortcut (which runs cygwin.bat,
>>>> which executes "bash --login -i"), bash reads files /etc/profile and
>>>> ~/.bash_profile. (Running "bash --login -i" from an interactive
>>>> "cmd" shell does the same.)
>>>>
>>>> However, when in that first bash process, another bash is started with
>>>> that same "bash --login -i" command, bash does _not_ read /etc/profile.
>>
>> Works for me.
>
> How did you detect that that second bash runs /etc/profile?
I added "set -x" to the file so it would show me when it was running.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list