GNU bug report logs -
#63142
30.0.50; QUOTING_STYLE can break dired
Previous Next
Reported by: Yuri D'Elia <wavexx <at> thregr.org>
Date: Fri, 28 Apr 2023 09:47:02 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 63142 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> 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.]
This bug report was last modified 2 years and 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.