aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Giraud2023-03-10 21:54:00 +0100
committerEli Zaretskii2023-03-18 08:26:51 +0200
commitf0b4ebbaf62c720cfe83750e1bf4fc3319ee72ff (patch)
tree2610efd194c036191a997c6d3c193aa3b47fe9a9
parentea87c54f359e3d98b4f21a0904206b3696b4bb74 (diff)
downloademacs-f0b4ebbaf62c720cfe83750e1bf4fc3319ee72ff.tar.gz
emacs-f0b4ebbaf62c720cfe83750e1bf4fc3319ee72ff.zip
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."
51 :type 'string) 51 :type 'string)
52 52
53(defvar find-ls-option-default-ls 53(defvar find-ls-option-default-ls
54 (cons "-ls" (if (eq system-type 'berkeley-unix) "-gilsb" "-dilsb"))) 54 (cons "-ls" (if (memq system-type '(berkeley-unix darwin))
55 "-dgils"
56 "-dilsb")))
55 57
56(defvar find-ls-option-default-exec 58(defvar find-ls-option-default-exec
57 (cons (format "-exec ls -ld {} %s" find-exec-terminator) "-ld")) 59 (cons (format "-exec ls -ld {} %s" find-exec-terminator) "-ld"))