]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'find-ls-option-default-ls' for BSD/MacOS (bug#62096)
authorManuel Giraud <manuel@ledu-giraud.fr>
Fri, 10 Mar 2023 20:54:00 +0000 (21:54 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Mar 2023 06:26:51 +0000 (08:26 +0200)
* lisp/find-dired.el (find-ls-option-default-ls): Adapt to
a value that works with the default "find" on *BSD and
Darwin/MacOS.  Tested on OpenBSD and MacOS.  Do not merge
to master.

lisp/find-dired.el

index 33376ee4ed955ea1c5cbfed9fef1e9eb7fcfb3d0..af029fb20741c2a35b88dbfd0459a09be7895dbb 100644 (file)
@@ -51,7 +51,9 @@ than the latter."
   :type 'string)
 
 (defvar find-ls-option-default-ls
-  (cons "-ls" (if (eq system-type 'berkeley-unix) "-gilsb" "-dilsb")))
+  (cons "-ls" (if (memq system-type '(berkeley-unix darwin))
+                  "-dgils"
+                "-dilsb")))
 
 (defvar find-ls-option-default-exec
   (cons (format "-exec ls -ld {} %s" find-exec-terminator) "-ld"))