summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Giraud <manuel@ledu-giraud.fr>2023-03-10 21:54:00 +0100
committerEli Zaretskii <eliz@gnu.org>2023-03-18 08:26:51 +0200
commitf0b4ebbaf62c720cfe83750e1bf4fc3319ee72ff (patch)
tree2610efd194c036191a997c6d3c193aa3b47fe9a9
parentea87c54f359e3d98b4f21a0904206b3696b4bb74 (diff)
downloademacs-f0b4ebbaf62c720cfe83750e1bf4fc3319ee72ff.tar.gz
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.
-rw-r--r--lisp/find-dired.el4
1 files changed, 3 insertions, 1 deletions
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"))