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

From: Óscar Fuentes <[email-masked]>
Date: Tue, 20 Jul 2010 15:39:39 +0200

Juanma Barranquero <[email-masked]> writes:

> Yes, I get
>
> c:/gnu/bin/find.exe: invalid predicate `-nam'

This is, most likely, a command-line lenght issue. Do C-u M-x rgrep and
enter the same parameters. When Emacs displays the command to be
executed on the minibuffer, insert an extra space between some of the
first parameters. Then the problem becomes

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

> 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?

Agreed. That's a symptom of a more general problem. I have no idea of
what's going on, because if the pipe is not used the command line for
`find' is similar on length and the problem doesn't happen.