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

Re: Linux permissions and which(1)



On Fri, Sep 05, 2003 at 01:55:35PM -0700, Bill Moseley wrote:

> See it again...
> 
> moseley@bumby:~/which-2.14$ which foo
> /usr/bin/foo
> 
> moseley@bumby:~/which-2.14$ bash -c foo
> foo in /usr/bin
> 
> moseley@bumby:~/which-2.14$ foo
> bash: /usr/local/bin/foo: Permission denied

Ah, that's probably because bash is caching a previous lookup of the 
file.


-- 
Bill Moseley
moseley@hank.org



Reply to: