|
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 19:02:26 +0200 |
User-agent: | Thunderbird 1.5.0.5 (Windows/20060719) |
Lennart Borgman wrote:
Jason Rumney wrote:Yes, I guess that is the trouble, but me? I did not write find-grep-dired ;-)Lennart Borgman wrote:There seem to be another bug on w32 too. I just tried using CMD.EXE for the inferior process instead. That does not seem to work at all. I got this:That is because you are using sh escape syntax in cmd.exe. Removing the backslash characters works in general, because the characters they are escaping do not have special meaning in cmd.exe. For those characters that do have special meaning, I think doubling them escapes them in cmd.exed:/ecvs/:find . \( -type f -exec grep -q -e "message" {} \; \) -exec ls -ld {} \;find: missing argument to `-exec'Since you understand this much better than me could you perhaps try fixing the command used by find-grep-dired?
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?
[Prev in Thread] | Current Thread | [Next in Thread] |