Subject: bug#9039: 24.0.50; dired "f" fails on directory that begins with a space

From: Eli Zaretskii <[email-masked]>
Date: Sun, 10 Jul 2011 06:02:49 +0300

> From: [email-masked] (Randal L. Schwartz)
> Date: Sat, 09 Jul 2011 19:46:03 -0700
> Cc: [email-masked]
> 
> GM> OK, your dired doesn't support the --dired option. In this case, dired
> GM> is known to not perform as well, especially with regards to file names
> GM> with spaces. If you install GNU ls, it will work better.
> 
> And yet, "find-file" finds the directory with a space just fine, and
> even autocompletes it.

find-file does not use `ls'.

> Why isn't GNU Emacs using readdir() and stat() internally?  Why is it
> depending on an external ls?

It was always like that with Dired on Posix platforms.  If you want a
Lisp emulation of `ls', try loading ls-lisp, maybe you will find it
better for your taste.