diff lisp/w32-fns.el @ 24661:a969304198eb

(convert-standard-filename): Only convert directory separators to backslash if the interactive shell is one of the standard Windows shells that has DOS semantics.
author Andrew Innes <andrewi@gnu.org>
date Sun, 02 May 1999 09:45:17 +0000
parents 06762ce530be
children 719f644e7cec
line wrap: on
line diff
--- a/lisp/w32-fns.el	Sun May 02 09:40:45 1999 +0000
+++ b/lisp/w32-fns.el	Sun May 02 09:45:17 1999 +0000
@@ -254,10 +254,12 @@
       (aset name (match-beginning 0) ?!)
       (setq start (match-end 0)))
     ;; convert directory separators to Windows format
-    (while (string-match "/" name start)
-      (aset name (match-beginning 0) ?\\)
-      (setq start (match-end 0)))
-    name))
+    ;; (but only if the shell in use requires it)
+    (if (w32-shell-dos-semantics)
+	(while (string-match "/" name start)
+	  (aset name (match-beginning 0) ?\\)
+	  (setq start (match-end 0))))
+      name))
 
 ;;; Fix interface to (X-specific) mouse.el
 (defun x-set-selection (type data)