unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* An ls that does not understand --dired
@ 2012-07-22 22:29 Peter Dyballa
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2012-07-22 22:29 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org List

Hello!

/bin/ls in Mac OS X 10.6.8 (and maybe more releases) does not understand "--dired", only "-dired". Is there a way to make dired use "-dired" instead of "--dired"? (Besides using gls from GNU Coreutils.)

--
Greetings

  Pete

No matter which way you ride, it's uphill and against the wind. 
				– First Law of Bicycling




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: An ls that does not understand --dired
       [not found] <mailman.5387.1342996177.855.help-gnu-emacs@gnu.org>
@ 2012-07-23  0:27 ` Ellen Taylor
  2012-07-23  7:00   ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Ellen Taylor @ 2012-07-23  0:27 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Hello!
>
> /bin/ls in Mac OS X 10.6.8 (and maybe more releases) does not understand "--dired", only "-dired". Is there a way to make dired use "-dired" instead of "--dired"? (Besides using gls from GNU Coreutils.)
>
> --
> Greetings
>
>   Pete
>
> No matter which way you ride, it's uphill and against the wind. 
> 				– First Law of Bicycling

You need to set 'dired-listing-switches'.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: An ls that does not understand --dired
  2012-07-23  0:27 ` Ellen Taylor
@ 2012-07-23  7:00   ` Tassilo Horn
  2012-07-24 22:44     ` Stefan Vollmar
  0 siblings, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2012-07-23  7:00 UTC (permalink / raw)
  To: help-gnu-emacs

Ellen Taylor < ellen@nospam.invalid > writes:

Hi!

>> /bin/ls in Mac OS X 10.6.8 (and maybe more releases) does not
>> understand "--dired", only "-dired". Is there a way to make dired use
>> "-dired" instead of "--dired"? (Besides using gls from GNU
>> Coreutils.)

The use of "--dired" is hard-coded in `dired-insert-directory'.

> You need to set 'dired-listing-switches'.

Dired checks if ls supports --dired.  In Peter's case, it'll determine
that it's not supported.  So adding "-dired" to `dired-listing-switches'
should in fact do the job.

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: An ls that does not understand --dired
  2012-07-23  7:00   ` Tassilo Horn
@ 2012-07-24 22:44     ` Stefan Vollmar
  2012-07-25  9:37       ` Peter Dyballa
  2012-07-25 11:32       ` Peter Dyballa
  0 siblings, 2 replies; 6+ messages in thread
From: Stefan Vollmar @ 2012-07-24 22:44 UTC (permalink / raw)
  To: Tassilo Horn, Peter_Dyballa; +Cc: David Reitter, help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1467 bytes --]

Dear Tassilo,
dear Ellen,
dear Peter,

I am afraid that adding "-dired" to dired-listing-switches did not solve the problem, at least not for current versions of Aquamacs 3 (it looks like an Emacs 24 Mac-specific problem). However, 

(setq dired-use-ls-dired nil)

does (error message gone). There is a caveat about "unusual" file names (e.g. those with leading spaces) in the documentation of dired-use-ls-dired, so maybe this solution is not for everybody.

Warm regards,
Stefan


On 23.07.2012, at 09:00, Tassilo Horn wrote:

> Ellen Taylor < ellen@nospam.invalid > writes:
> 
> Hi!
> 
>>> /bin/ls in Mac OS X 10.6.8 (and maybe more releases) does not
>>> understand "--dired", only "-dired". Is there a way to make dired use
>>> "-dired" instead of "--dired"? (Besides using gls from GNU
>>> Coreutils.)
> 
> The use of "--dired" is hard-coded in `dired-insert-directory'.
> 
>> You need to set 'dired-listing-switches'.
> 
> Dired checks if ls supports --dired.  In Peter's case, it'll determine
> that it's not supported.  So adding "-dired" to `dired-listing-switches'
> should in fact do the job.
> 
> Bye,
> Tassilo
> 
> 

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: vollmar@nf.mpg.de   http://www.nf.mpg.de







[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: An ls that does not understand --dired
  2012-07-24 22:44     ` Stefan Vollmar
@ 2012-07-25  9:37       ` Peter Dyballa
  2012-07-25 11:32       ` Peter Dyballa
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2012-07-25  9:37 UTC (permalink / raw)
  To: Stefan Vollmar; +Cc: David Reitter, Tassilo Horn, help-gnu-emacs


Am 25.07.2012 um 00:44 schrieb Stefan Vollmar:

> I am afraid that adding "-dired" to dired-listing-switches did not solve the problem, at least not for current versions of Aquamacs 3 (it looks like an Emacs 24 Mac-specific problem).

Indeed, elder Emacsen, versions 23.x, do understand a settings like

	(setq dired-listing-switches "-ahlw -dired")

in the site init file and obey it, i.e., they can work with /bin/ls. All the GNU Emacs 24.x versions fail to obey. In earlier version it was also possible to set

	(setq insert-directory-program "gls" dired-use-ls-dired t)

This looks like being worth a bug report.

--
Greetings

  Pete

Don't force it; get a larger hammer. 
				– Anthony's Law of Force




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: An ls that does not understand --dired
  2012-07-24 22:44     ` Stefan Vollmar
  2012-07-25  9:37       ` Peter Dyballa
@ 2012-07-25 11:32       ` Peter Dyballa
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2012-07-25 11:32 UTC (permalink / raw)
  To: Stefan Vollmar; +Cc: David Reitter, Tassilo Horn, help-gnu-emacs


Am 25.07.2012 um 00:44 schrieb Stefan Vollmar:

> However, 
> 
> (setq dired-use-ls-dired nil)
> 
> does (error message gone). There is a caveat about "unusual" file names (e.g. those with leading spaces) in the documentation of dired-use-ls-dired, so maybe this solution is not for everybody.

Using the above setting is really bad: no directory listing possible when some directory in the absolute path contains a SPACE…

When you can install gls from the GNU Coreutils the settings

	(setq ls-lisp-use-insert-directory-program t)
	(setq insert-directory-program "gls")

allow GNU Emacs 24.1 to use gls.

A second problem exists with possible use of the variable dired-listing-switches. With GNU gls I use "-ahlN" which has to be with the system's ls "-ahlw".

--
Greetings

  Pete

The best way to accelerate a PC is 9.8 m/s²




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-25 11:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-22 22:29 An ls that does not understand --dired Peter Dyballa
     [not found] <mailman.5387.1342996177.855.help-gnu-emacs@gnu.org>
2012-07-23  0:27 ` Ellen Taylor
2012-07-23  7:00   ` Tassilo Horn
2012-07-24 22:44     ` Stefan Vollmar
2012-07-25  9:37       ` Peter Dyballa
2012-07-25 11:32       ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).