[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master e82c4f5: Don't assume /bin/sh as the 'sh' locat
From: |
Tino Calancha |
Subject: |
Re: [Emacs-diffs] master e82c4f5: Don't assume /bin/sh as the 'sh' location in the local host |
Date: |
Wed, 2 Aug 2017 22:46:06 +0900 (JST) |
User-agent: |
Alpine 2.20 (DEB 67 2015-01-07) |
On Wed, 2 Aug 2017, Stefan Monnier wrote:
Don't assume /bin/sh as the 'sh' location in the local host
[...]
+ (and (bound-and-true-p explicit-shell-file-name)
+ (executable-find explicit-shell-file-name))
Hmm... why did you choose explicit-shell-file-name over shell-file-name?
It was mentioned by Michael as a possibility. I chose it because is a
defcustom: it might reflect an user preference compared with
shell-file-name which is given.
For example, my shell-file-name is bash. I might customize
explicit-shell-file-name to '/bin/zsh', then i can
use '**/' zsh syntaxis in the wildcard expansion:
(let ((buf
(dired-noselect (expand-file-name "**/*.el" source-directory))))
(with-current-buffer buf
(dired-toggle-marks)
(length (dired-get-marked-files))))
=> 1731
;; => 277 ; If i would use shell-file-name
We might changed it if you don't like it.