grep is always recursive

Hal Burgiss hal at burgiss.net
Sat Jan 24 18:09:12 UTC 2009


On Sat, Jan 24, 2009 at 06:46:33PM +0100, Loïc Grenié wrote:
> > Some of the listings there are directories. But I don't see any reason
> > for grep itself to act recursively. Interestingly, I find this only
> > happens in $HOME. If I cd to somewhere else, grep acts as expected.
> > Very strange.
> 
>     Thus funny !
> 
>     Could you try
> 
> /bin/grep a *
> 
>   then
> 
> ln -s /bin/grep /tmp/toto
> /tmp/toto a *
> 
>   to see if they have the same behaviour ?

Identical behavior (recursive).

-- 
Hal





More information about the ubuntu-users mailing list