From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master e82c4f5: Don't assume /bin/sh as the 'sh' location in the local host Date: Wed, 02 Aug 2017 11:54:56 -0400 Message-ID: References: <20170802075459.16207.16636@vcs0.savannah.gnu.org> <20170802075500.60BEA20E71@vcs0.savannah.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501689347 6631 195.159.176.226 (2 Aug 2017 15:55:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2017 15:55:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Michael Albinus , Emacs developers To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 02 17:55:42 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcvzi-00014o-Cc for ged-emacs-devel@m.gmane.org; Wed, 02 Aug 2017 17:55:34 +0200 Original-Received: from localhost ([::1]:48394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcvzo-00017J-7z for ged-emacs-devel@m.gmane.org; Wed, 02 Aug 2017 11:55:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcvzH-00014f-J1 for emacs-devel@gnu.org; Wed, 02 Aug 2017 11:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcvzD-0004xa-FF for emacs-devel@gnu.org; Wed, 02 Aug 2017 11:55:07 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcvzD-0004xL-9o for emacs-devel@gnu.org; Wed, 02 Aug 2017 11:55:03 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v72Fsu62028531; Wed, 2 Aug 2017 11:54:57 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C184B661C0; Wed, 2 Aug 2017 11:54:56 -0400 (EDT) In-Reply-To: (Tino Calancha's message of "Wed, 2 Aug 2017 22:46:06 +0900 (JST)") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6085=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6085> : inlines <6005> : streams <1756863> : uri <2474951> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217241 Archived-At: > 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. explicit-shell-file-name is normally used when the user asks for a shell (e.g. M-x shell), whereas shell-file-name is used whenever we want to run a shell command (e.g. `shell-command`). The docstring of `shell` says: Program used comes from variable `explicit-shell-file-name', or (if that is nil) from the ESHELL environment variable, or (if that is nil) from `shell-file-name'. > 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 But setting explicit-shell-file-name to `/bin/zsh` doesn't let you use `**/` in M-! whereas if you had set shell-file-name to `/bin/zsh` you'd get that extra functionality everywhere. Stefan