[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f1a7cd71a04: Fix Dired when QUITING_STYLE is set in the environme
From: |
Eli Zaretskii |
Subject: |
master f1a7cd71a04: Fix Dired when QUITING_STYLE is set in the environment |
Date: |
Tue, 2 May 2023 13:46:13 -0400 (EDT) |
branch: master
commit f1a7cd71a04270e44845427daa896afe80b0acb0
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix Dired when QUITING_STYLE is set in the environment
* lisp/dired.el (dired-insert-directory): Ensure non-default
quoting style of file names is not used by 'ls' when we invoke it
with the --dired switch. (Bug#63142)
---
lisp/dired.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/dired.el b/lisp/dired.el
index d1471e993a1..e3a9d7bc428 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1653,7 +1653,10 @@ If HDR is non-nil, insert a header line with the
directory name."
see `dired-use-ls-dired' for more details.")
nil))
dired-use-ls-dired)))
- (setq switches (concat "--dired " switches)))
+ ;; Use -N with --dired, to countermand possible non-default
+ ;; quoting style, in particular via the environment variable
+ ;; QUOTINTG_STYLE.
+ (setq switches (concat "--dired -N " switches)))
;; Expand directory wildcards and fill file-list.
(let ((dir-wildcard (insert-directory-wildcard-in-dir-p dir)))
(cond (dir-wildcard
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f1a7cd71a04: Fix Dired when QUITING_STYLE is set in the environment,
Eli Zaretskii <=