bug-bash
[Top][All Lists]
Advanced

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

Re: --norc has no effect with -c


From: Chet Ramey
Subject: Re: --norc has no effect with -c
Date: Wed, 13 Feb 2002 09:38:44 -0500

> Machine Type: i386-redhat-linux-gnu
>  
> Bash Version: 2.04
> Patch Level: 21
> Release Status: release
>  
> Description:
> Option --norc has no effect when -c is used.
> 
> Repeat-By:
> When I run as root the following command (change "me" to existing user):
> su -c echo me -- --norc
> I get the message:
> bash: /root/.bashrc: Permission denied
>  
> This shows that bash tries to read ~/.bashrc inspite of --norc option

Probably because the ENV or BASH_ENV variable is set.

> Another example. Put e.g. "echo foo" in your .bashrc and run:
> bash -c echo --norc
> 
> You will see the output from .bashrc.

Probably because the ENV or BASH_ENV variable is set.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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