Hi.
I think shell-quote-argument should not use
(eq system-type'windows-nt)
instead it should take shell-file-name into account.
It seems very usual for emacs users on w32 to use cygwin or mingw.
Right now shell-quote-argument would return something wrong when bash
or some "intelligent" shell is used on w32 because it assumes a dumb
w32 shell.
What do others think about this (little tested) change?
diff -c "subr.el.~1.433~" "subr.el"
*** subr.el.~1.433~ Mon Mar 7 13:47:21 2005
--- subr.el Mon Mar 7 13:48:36 2005
***************
*** 2274,2280 ****
"\\" (substring argument end (1+ end)))
start (1+ end))))
(concat "\"" result (substring argument start) "\""))
! (if (eq system-type 'windows-nt)
(concat "\"" argument "\"")
(if (equal argument "")
"''"
--- 2274,2280 ----
"\\" (substring argument end (1+ end)))
start (1+ end))))
(concat "\"" result (substring argument start) "\""))
! (if (string-match shell-dumb-shell-regexp shell-file-name)
(concat "\"" argument "\"")
(if (equal argument "")
"''"
Stephan
--
Stephan Stahl
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel