diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-01-27 02:18:29 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-01-27 02:18:29 +0000 |
commit | 9bbe5033809613f556e7a4b29ca58e26c7eb1cf8 (patch) | |
tree | ee8c3148c53fdd6b693aba417ade981d36c71ec0 /lisp | |
parent | f851311e968957938af73a15481be8d97ea0f626 (diff) | |
download | emacs-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.el | 2 |
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) |