grep is always recursive

Hal Burgiss hal at burgiss.net
Sat Jan 24 22:34:33 UTC 2009


On Sat, Jan 24, 2009 at 09:38:28PM +0000, Paul Sladen wrote:
> 
>   mkdir -p ~/tmp/empty/test/
>   echo hello > ~/tmp/empty/test/a
>   grep [l][l] -r ~/tmp/empty/ || echo byebye

halb at honey:~$ grep [l][l] -r ~/tmp/empty/ || echo byebye
/home/halb/tmp/empty/test/a:hello

 
> and:
> 
>   grep -a . /proc/self/cmdline

halb at honey:~$ grep -a . /proc/self/cmdline
grep-a./proc/self/cmdline

?

-- 
Hal





More information about the ubuntu-users mailing list