Subject: bug#12044: 24.1; ls does not support --dired

From: Peter Dyballa <[email-masked]>
Date: Tue, 31 Jul 2012 00:02:55 +0200

Am 30.07.2012 um 20:58 schrieb Glenn Morris:

> Either customize dired-use-ls-dired to nil, to suppress the message and
> go back to how it used to be, or it seems on your system you can set
> insert-directory-program to "gls", which is GNU ls I assume.

	(setq insert-directory-program "gls") 

still seems to do the job – and it silences the report. This "gls" is indeed GNU ls (8.17). But… 'emacs -Q' shows the report on ls and starts the dired buffer with:

  /Users/pete:
  total used in directory 1149800 available 159246008
  drwxr-xr-x+ 92 pete   admin      23188 29 Jul 22:50 .

When I execute

	(setq insert-directory-program "gls") 

in *scratch* buffer, then the opened dired buffer starts with:

  /Users/pete:
  insgesamt 574900
  drwxr-xr-x+ 92 pete  admin     23188 29. Jul 22:50 .

For both cases this is valid:

	dired-listing-switches is a variable defined in `dired.el'.
	Its value is "-al"

The latter output is from gls, the former from the ls emulation?

--
Greetings

  Pete

Time flies like an error – but fruit flies like a banana!
				- (almost) Groucho Marx