]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-get-filename): When quoting " chars,
authorRichard M. Stallman <rms@gnu.org>
Sat, 27 Jan 1996 02:18:29 +0000 (02:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 27 Jan 1996 02:18:29 +0000 (02:18 +0000)
handle all of them, including one at start of file name.

lisp/dired.el

index ca69ece98f4f3c1727cf23ac02e5d490ca0fa9f5..39d4a8991219dd931d534a3766f5a44172b44fb0 100644 (file)
@@ -1199,7 +1199,7 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on
                         ;; some ls -b don't escape quotes, argh!
                         ;; This is not needed for GNU ls, though.
                         (or (dired-string-replace-match
-                             "\\([^\\]\\)\"" file "\\1\\\\\"")
+                             "\\([^\\]\\|\\`\\)\"" file "\\1\\\\\"" nil t)
                             file)
                         "\"")))))
     (if (eq localp 'no-dir)