GNU bug report logs - #62096
30.0.50; find-dired, dired-goto-file and spaces

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Fri, 10 Mar 2023 14:55:02 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: 62096 <at> debbugs.gnu.org, stephen.berman <at> gmx.net, drew.adams <at> oracle.com
Subject: bug#62096: 30.0.50; find-dired, dired-goto-file and spaces
Date: Sat, 11 Mar 2023 15:02:44 +0100
[Message part 1 (text/plain, inline)]
Hi,

So here is a patch that should fix *BSD and macOS.  For Windows, I don't
know if it is the right fix (so it does nothing on Windows, sorry Drew).

I choose "-dgils" because FreeBSD, NetBSD and macOS man pages state the
following about -ls switch for find(1):
The format is identical to that produced by "ls -dgils".

On OpenBSD, the find(1) man page says:
The format is identical to that produced by "ls -dils".

But the "-g" switch does not seems to do something different when the
"-l" is present.

For testing without recompiling Emacs, one could evaluate this:
--8<---------------cut here---------------start------------->8---
(setq find-ls-option-default-ls
  (cons "-ls" (if (or (eq system-type 'berkeley-unix)
                      (eq system-type 'darwin))
                  "-dgils"
                "-dilsb")))
--8<---------------cut here---------------end--------------->8---

Daniel: I'd like to hear what it does on macOS.

Drew: You could test on your system by "forcing"
'find-ls-option-default-ls' with the following:
--8<---------------cut here---------------start------------->8---
(setq find-ls-option-default-ls (cons "-ls" "-dils"))
--8<---------------cut here---------------end--------------->8---

This patch was produce on the main branch but FWIW I think it should
also go on emacs-29.

[0001-Fix-find-ls-option-default-ls-for-BSD-MacOS-bug-6209.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Manuel Giraud

This bug report was last modified 2 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.