Subject: Re: bug#7546: 23.2; [dired] leading spaces in directory names

From: Glenn Morris <[email-masked]>
Date: Fri, 03 Dec 2010 18:16:46 -0500

Ken Brown wrote:

> Wouldn't it make more sense to initialize dired-use-ls-dired based on
> system-type?

To me, it makes most sense to test what options ls actually supports:

(with-temp-buffer
 (call-process "ls" nil t nil "--help")
 (and (re-search-backward "--dired" nil t) t))