GNU bug report logs -
#22477
24.5; Dired does not work if file names contain newlines
Previous Next
Full log
Message #23 received at 22477 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Glenn Morris <rgm <at> gnu.org> writes:
> > Aura Kelloniemi wrote:
> >
> >> 1. Create a file which contains a newline character in its name.
> >
> > If you like to do weird things like that, adding "-b" to
> > dired-listing-switches helps.
> The reason characters like that are problematic is because we're using
> "ls" and then parsing the output, I guess? Is there any particular
> reason dired is still doing that? Is the ls-lisp.el implementation
> noticeably slower still?
According to the Emacs manual, ls-lisp is lacking some features that the ls
binary generally has.
What comes to special characters, ls supports many quoting styles, which Emacs
could implement (at least GNU ls supports them).
But the most portable, secure and configurable solution would be to enhance
(or rewrite) ls-lisp. It could support additional features which cannot be
very well implemented when using read ls, like allowing the user to control
the format of printed directory entries (I personally would like the file
permissions and other attributes to be shown on the right edge of the window
and the file name on the left, not the other way around as with 'ls -l').
--
Aura
This bug report was last modified 4 years and 227 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.