Subject: Re: bug#6674: PATCH: fix assignment of grep-find-use-xargs on Windows/MS-DOS

From: Juanma Barranquero <[email-masked]>
Date: Tue, 20 Jul 2010 14:57:03 +0200

2010/7/20 Óscar Fuentes <[email-masked]>:

> On Windows, when find-program points to a GNU-compatible `find'
> executable, grep-find-use-xargs is assigned the symbol 'gnu. The
> consequence of this is that `rgrep' ends building a command that
> contains a pipe: find <args> | xargs -0 grep <args> This ends with
> `find' reporting confusing errors about wrong arguments.

Yes, I get

c:/gnu/bin/find.exe: invalid predicate `-nam'

but the very same command works from the command line. So the right
thing would be to fix how rgrep invokes the command on Windows,
wouldn't it?

    Juanma