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.
This commit is contained in:
Manuel Giraud 2023-03-10 21:54:00 +01:00 committed by Eli Zaretskii
parent ea87c54f35
commit f0b4ebbaf6

View 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"))