From: Manuel Giraud Date: Fri, 10 Mar 2023 20:54:00 +0000 (+0100) Subject: Fix 'find-ls-option-default-ls' for BSD/MacOS (bug#62096) X-Git-Tag: emacs-29.0.90~153 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0b4ebbaf62c720cfe83750e1bf4fc3319ee72ff;p=emacs.git Fix 'find-ls-option-default-ls' for BSD/MacOS (bug#62096) * 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. --- diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 33376ee4ed9..af029fb2074 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -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"))