bug-make
[Top][All Lists]
Advanced

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

RE: interactive shell is incorrect


From: lasse.makholm
Subject: RE: interactive shell is incorrect
Date: Fri, 6 Jun 2003 09:57:09 +0200


> -----Original Message-----
> From: ext David Thompson [mailto:address@hidden
> Sent: Friday, June 06, 2003 1:52 AM
> To: 'Paul D. Smith'
> Cc: 'address@hidden'
> Subject: RE: interactive shell is incorrect
> 
> 
> 
> [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 option is present?  I need to study the bash
> man pages and pursue as a bash problem ...

You might wanna try echoing the $- variable in bash.
It shows the bash's current options.

/Lasse




reply via email to

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