Subject: bug#7785: rgrep is broken on woe32

From: Sam Steingold <[email-masked]>
Date: Thu, 6 Jan 2011 12:09:12 -0500

On Thu, Jan 6, 2011 at 11:20 AM, Eli Zaretskii <[email-masked]> wrote:
>> Date: Thu, 6 Jan 2011 10:46:58 -0500
>> From: Sam Steingold <[email-masked]>
>> Cc: [email-masked], [email-masked]
>>
>> of PATH globally:
>>
>> (getenv "PATH")
>> "c:\\gnu\\gnuwin32\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\gnu\\clisp-2.49;C:\\Program
>> Files\\TortoiseSVN\\bin;c:\\gnu\\cygwin\\bin;d:\\bin;C:\\Program Files
>> (x86)\\TortoiseHg\\;C:\\Program Files
>> (x86)\\Bazaar;C:\\gnu\\GnuTLS-2.10.1\\bin"
>>
>> find . "(" -path "*/SCCS" -o -path "*/RCS"...-o -name "*.pyo" ")"
>> -prune -o  -type f "(" -iname "*" -o -iname ".*" ")" -print0 | xargs
>> -0 -e grep -i -nH "asdf"
>> xargs: grep: No such file or directory
>> ./src/clisp/current/src/ChangeLog:29: * modules/asdf/asdf.lisp: update
>> to upstream "2.011"
>> ./src/clisp/current/src/ChangeLog:512:        bundle ASDF2 as a module
>> ./src/clisp/current/src/ChangeLog:513:        * Makefile.devel (update-asdf):
>> new .PHONY target
>> ./src/clisp/current/src/ChangeLog:515:        * modules/asdf: add (based on asdf 2.008)
>> ./src/clisp/current/src/ChangeLog:516:        * makemake.in, unix/INSTALL:
>> mention asdf in the docs
>> ./src/clisp/current/src/ChangeLog:590:        (require): use the above, now
>> one can hook asdf into clisp
>> grep: ./src/clisp/c: No such file or directory
>> find: write error: Invalid argument
>
> Does this command work from the Windows shell, if you tweak PATH to
> have the gnuwin32 directory be at the beginning?

yes, the same way.
I started cmd; prepended gnuwin to path, started emacs -Q from the
cmd; got the above in rgrep, then copied the command into the cmd and
got the exact same output there,
EXCEPT that neither emacs nor cmd contain the
"grep: ./src/clisp/c: No such file or directory"
error (the other two:
"xargs: grep: No such file or directory"
and
"find: write error: Invalid argument"
are present both in emacs and cmd).

-- 
Sam Steingold <http://sds.podval.org>