[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r9106 - trunk/contrib/client-side

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-03-23 11:47:17 CET

On Thu, 2004-03-18 at 14:30, Ben Reser wrote:
> On Thu, Mar 18, 2004 at 11:21:13AM +0100, Florian Weimer wrote:
> > * contrib/client-side/wcgrep
> > Document GNU findutils and GNU grep dependency.
> > Pass -H option to grep to always print the file name. Otherwise, it
> > could happen that xargs invokes the last grep process with only one
> > file argument, and grep doesn't print the file name by default if just
> > one file is searched.

Just for people's edification, you can avoid a gnu grep dependency on
the -H flag and still solve the xargs-single-file problem by using the
trick:

  find ... | xargs grep <options> /dev/null

However, there's no substitute for the find -0 | xargs -0 options, so in
this case there's no reason not to use the -H flag.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 23 11:47:50 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.