grep is always recursive

Loïc Grenié loic.grenie at gmail.com
Sat Jan 24 20:53:44 UTC 2009


2009/1/24 Hal Burgiss <hal at burgiss.net>:
> On Sat, Jan 24, 2009 at 09:19:36PM +0100, Loïc Grenié wrote:
>>
>>     So this is definitely not "grep" itself but the system...
>>
>> env -i /bin/grep a *
>>
>
> Same results. Recursive.

    I don't know ! Maybe your home-dir is particular in
  some way ? filesystem, mount options, symlinks ?
  I know I have had some problems with unionfs for
  instance (not the same kind, though).

    As a (last ?) resort you can try to

strace -o /tmp/trace grep a *

  both at home and elsewhere,

scp $elsewhere:/tmp/trace /tmp/trace2
diff /tmp/trace /tmp/trace2

  and see if something stand out.

     Loïc




More information about the ubuntu-users mailing list