emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Can't stop find-grep-dired when using Cygwin for the inferior proces


From: Lennart Borgman
Subject: Re: Can't stop find-grep-dired when using Cygwin for the inferior process - bug in shell-quote-argument?
Date: Sun, 27 Aug 2006 21:42:34 +0200
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

Jason Rumney wrote:
Lennart Borgman wrote:
I think there is a bug in shell-quote-argument that is used here. This function does not care about shell-file-name. How can quoting succeed if it does not do that?

Indeed, that is a problem, as is the blind wrapping in double quotes on w32 when ms-dos has a much more complete implementation of what should be done for Windows native shells. But it doesn't explain why you are getting sh style quoting on w32 without making changes to that function.


No, there seems to be several bugs here. I wonder whether there is inconsistent use of shell-quote-argument?

In any case the command string that is built and send to CMD does not work. Here I am using the GnuWin32 port of find, version 4.2.20. Find complains about the first -exec:

find . \( -type f -exec grep -q -e "message" {} \; \) -exec ls -ld {} \;
   find: missing argument to `-exec'

Stepping through shell-quote-argument it I can see that it tales the 'windows-nt path so that should be ok. There is only one call to shell-quote-argument involved and that is from find-grep-dired.

How should the above command look in this case? I am not very familiar with find. Perhaps is it not possible to give this command with CMD.EXE?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]