summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-01-27 02:18:29 +0000
committerRichard M. Stallman <rms@gnu.org>1996-01-27 02:18:29 +0000
commit9bbe5033809613f556e7a4b29ca58e26c7eb1cf8 (patch)
treeee8c3148c53fdd6b693aba417ade981d36c71ec0 /lisp
parentf851311e968957938af73a15481be8d97ea0f626 (diff)
downloademacs-9bbe5033809613f556e7a4b29ca58e26c7eb1cf8.tar.gz
(dired-get-filename): When quoting " chars,
handle all of them, including one at start of file name.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/dired.el2
1 files changed, 1 insertions, 1 deletions
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)