bug-bash
[Top][All Lists]
Advanced

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

RE: RE: bash is interactive despite -c option?


From: David Thompson
Subject: RE: RE: bash is interactive despite -c option?
Date: Fri, 6 Jun 2003 15:30:42 -0700

>-----Original Message-----
>From: cpr@cwru.edu [mailto:cpr@cwru.edu]
>
>> Since I used ssh to login, I now have some clue.  I'll
>> proceed to download the bash sources and lookup the code
>> dealing with SSH_SOURCE_BASHRC.  Perhaps bash is confused
>> by presence of some ssh environment variable(s)?
>
>Look at shell.c:run_startup_files() and
>lib/sh/netconn.c:isnetconn().

I downloaded bash-2.05b.tar.gz, built and tested.  I could
not reproduce the problem.  :)

Making sure SSH_SOURCE_BASHRC is undefined in config-top.h
resolves the issue.  When I define this, I see the undesirable
output.

Unfortunately, I am unaware of SSH_SOURCE_BASHRC setting for
the versions of bash I tested with.  Is there a way to ask
bash for the value of such compile-time settings?

Btw, if I unset SSH_CLIENT in my environment the original
problem of undesirable output also ceases.

Hooray!  Thank you, Paul and Chet, this resolves all my issues.

We'll need to upgrade to bash version 2.05b.

--
David




reply via email to

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