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?





_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to