From bc07e5cb1e416d6b7df6deb3b0866c2fd1a79fdf Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 27 Jan 1996 02:18:29 +0000 Subject: [PATCH] (dired-get-filename): When quoting " chars, handle all of them, including one at start of file name. --- lisp/dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/dired.el b/lisp/dired.el index ca69ece98f4..39d4a899121 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -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) -- 2.39.2