From f0b4ebbaf62c720cfe83750e1bf4fc3319ee72ff Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Fri, 10 Mar 2023 21:54:00 +0100 Subject: 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. --- lisp/find-dired.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")) -- cgit v1.2.3