[snip]
>Can you help suggest experiments?
Maybe this shows the problem is bash,
$ cat ~/.bashrc
echo Hello bashrc
$ /bin/bash -c /bin/pwd
Hello bashrc
/home/davidt/tmp
$ /bin/sh -c /bin/pwd
/home/davidt/tmp
Why does bash think it's running interactively when
the -c
> From: Paul D. Smith [mailto:[EMAIL PROTECTED]
> %% David Thompson <[EMAIL PROTECTED]> writes:
> dt> BASH_ENV is no, but ENV is yes.
>
> dt> $ echo $BASE_ENV
>
> dt> $ echo $ENV
> dt> /home/davidt/.kshrc
>
> dt> My login shell is ksh93, so naturally I'm using ENV
> dt> with ks
%% David Thompson <[EMAIL PROTECTED]> writes:
dt> BASH_ENV is no, but ENV is yes.
dt> $ echo $BASE_ENV
dt> $ echo $ENV
dt> /home/davidt/.kshrc
dt> My login shell is ksh93, so naturally I'm using ENV
dt> with ksh, not bash.
Doesn't matter. ENV handling is a requirement of the
> From: Paul D. Smith [mailto:[EMAIL PROTECTED]
Thanks for your quick response!
> dt> Could someone explain this behavior?
> Maybe. Do you have either the $ENV or $BASH_ENV variables
> set? If so that probably explains the behavior. See the
> bash man page for more information.
BASH_ENV is no
> -Original Message-
> From: ext David Thompson [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 06, 2003 1:52 AM
> To: 'Paul D. Smith'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: interactive shell is incorrect
>
>
>
> [snip]
> >Can
%% "David Thompson" <[EMAIL PROTECTED]> writes:
dt> Could someone explain this behavior?
Maybe. Do you have either the $ENV or $BASH_ENV variables set? If so
that probably explains the behavior. See the bash man page for more
information.
Also note that on some Linux systems /bin/sh (which