From: Tino Calancha <tino.calancha@gmail.com>
To: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
Cc: Eli Zaretskii <eliz@gnu.org>,
Emacs developers <emacs-devel@gnu.org>,
Michael Albinus <michael.albinus@gmx.de>,
Tino Calancha <tino.calancha@gmail.com>
Subject: Re: dired-tests.el fails on MS-Windows
Date: Wed, 2 Aug 2017 12:38:59 +0900 (JST) [thread overview]
Message-ID: <alpine.DEB.2.20.1708021229200.12768@calancha-pc> (raw)
In-Reply-To: <CAFgFV9Pf2bSJQ1KRTN3vwU1aK6Ca8ONOqRwsCc03V3zC7M2YBQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1773 bytes --]
On Tue, 1 Aug 2017, Fabrice Popineau wrote:
> I don't get a failure on dired-test-bug25609 with windows 10 and running from a mingw64 bash.
> I get a failure on dired-test-bug27631 because "/bin/sh" is hardcoded in lisp/dired.el and the
> place for sh.exe in msys2 is in /usr/bin .
Thank you for the comments and suggestions!
I should used 'executable-find' for a local connection. For a
tramp connection i don't know how to get the 'sh' location in the
remote host: i just kept '/bin/sh' for them.
Michael?
--8<-----------------------------cut here---------------start------------->8---
commit 76f1ea53c7469f7d4c5b9007633642124ae88c62
Author: Tino Calancha <tino.calancha@gmail.com>
Date: Wed Aug 2 12:27:42 2017 +0900
Don't assume /bin/sh as the 'sh' location in the local host
* lisp/dired.el (dired-insert-directory): Use executable-find in
a local host.
diff --git a/lisp/dired.el b/lisp/dired.el
index 4f8f615a34..a0e1fe185d 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1281,7 +1281,8 @@ dired-insert-directory
(unless
(zerop
(process-file
- "/bin/sh" nil (current-buffer) nil "-c" script))
+ (or (and (file-remote-p default-directory) "/bin/sh") (executable-find "sh"))
+ nil (current-buffer) nil "-c" script))
(user-error
"%s: No files matching wildcard" (cdr dir-wildcard)))
(insert-directory-clean (point) switches)))
--8<-----------------------------cut here---------------end--------------->8---
In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
of 2017-08-02
Repository revision: 0fd6de9cb444d6cc553ea67815ccfb7a923012a2
next prev parent reply other threads:[~2017-08-02 3:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-01 15:22 dired-tests.el fails on MS-Windows Eli Zaretskii
2017-08-01 17:02 ` Tino Calancha
2017-08-01 19:04 ` Eli Zaretskii
2017-08-01 20:56 ` Fabrice Popineau
2017-08-02 6:44 ` Tino Calancha
2017-08-04 13:18 ` Eli Zaretskii
2017-08-04 13:30 ` Fabrice Popineau
2017-08-04 13:44 ` Tino Calancha
2017-08-04 14:01 ` Fabrice Popineau
2017-08-04 14:00 ` Eli Zaretskii
2017-08-04 5:21 ` Tino Calancha
2017-08-04 13:14 ` Eli Zaretskii
2017-08-04 13:39 ` Tino Calancha
2017-08-04 14:23 ` Fabrice Popineau
2017-08-04 14:39 ` Fabrice Popineau
2017-08-04 14:49 ` Tino Calancha
2017-08-04 14:58 ` Fabrice Popineau
2017-08-04 15:10 ` Tino Calancha
2017-08-01 20:52 ` Fabrice Popineau
2017-08-02 3:38 ` Tino Calancha [this message]
2017-08-02 6:31 ` Michael Albinus
2017-08-02 7:59 ` Tino Calancha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1708021229200.12768@calancha-pc \
--to=tino.calancha@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=fabrice.popineau@centralesupelec.fr \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).