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
View this message in rfc822 format
On Fri, Apr 28 2023, Eli Zaretskii wrote:
>> > I'd suggest first to report this to Coreutils maintainers: it makes
>> > little sense to me to honor QUOTING_STYLE when --dired is specified.
>> > If the Coreutils folks decline to handle this, then I guess we will
>> > have to.
>>
>> What sort of output should ls use in --dired mode?
>
> The default one, I think. --dired already produces the information
> which tells where each file name begins and ends, so any quoting
> sounds redundant, no?
So searching through coreutils I find this old report:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23024
| On further analysis I see that --dired mode already distinguishes
| the quoting-style in its output. Also we had already documented
| that --dired should specify a --quoting-style to get consistent output.
Which huh, does mention this in the ls manual:
| If you use a quoting style like ‘--quoting-style=c’ (‘-Q’) that
| adds quote marks, then the offsets include the quote marks. So
| beware that the user may select the quoting style via the
| environment variable ‘QUOTING_STYLE’. Hence, applications using
| ‘--dired’ should either specify an explicit
| ‘--quoting-style=literal’ (‘-N’) option on the command line, or
| else be prepared to parse the escaped names.
Then it references a commit mentioning an emacs fix:
https://github.com/emacs-mirror/emacs/commit/e4adb6
which however seems to apply to tramp only.
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.