[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#63142: 30.0.50; QUOTING_STYLE can break dired
From: |
Ruijie Yu |
Subject: |
bug#63142: 30.0.50; QUOTING_STYLE can break dired |
Date: |
Sat, 29 Apr 2023 23:05:27 +0800 |
User-agent: |
mu4e 1.9.22; emacs 30.0.50 |
Eli Zaretskii <eliz@gnu.org> writes:
> Does the patch below give good results?
>
> diff --git a/lisp/dired.el b/lisp/dired.el
> index d1471e9..e3a9d7b 100644
> --- a/lisp/dired.el
> +++ b/lisp/dired.el
> @@ -1653,7 +1653,10 @@ dired-insert-directory
> 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
Do we need to prevent "wild" users from setting a conflicting quoting
style in `switches', in which case we should swap the two arguments to
`concat'?
--
Best,
RY
[Please note that this mail might go to spam due to some
misconfiguration in my mail server -- still investigating.]
bug#63142: 30.0.50; QUOTING_STYLE can break dired, Ruijie Yu, 2023/04/28