tech-userlevel archive

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

Re: grep -r: add default "."



Charlotte Koch wrote:

> On Fri, 2 Sep 2022, Thomas Klausner wrote:
>
> >
> > I often forget the "." at the end of my 'grep -r'.
> > GNU grep automatically adds it, i.e.:
> >
> > # grep -r foo
> > #
> >
> > is the same as
> >
> > # grep -r foo .
> > #
> >
> > The grep we have in NetBSD recognizes that something is wrong, but is
> > not that helpful:
> >
> > # grep -r foo
> > grep: warning: recursive search of stdin
> > (stops here, waiting for input)
> >
> > I'd like the change the behaviour to match what GNU grep does.
> > Comments?
> > Thomas
> >
>
> Yes please! This has always bugged me.

<aol> me too, please do!

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index