From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: dired-tests.el fails on MS-Windows Date: Wed, 2 Aug 2017 16:59:39 +0900 (JST) Message-ID: References: <83zibjz519.fsf@gnu.org> <87d18ewkes.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1501660828 25862 195.159.176.226 (2 Aug 2017 08:00:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2017 08:00:28 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Eli Zaretskii , Fabrice Popineau , Emacs developers , Tino Calancha To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 02 10:00:19 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 1dcoZm-0006AS-I5 for ged-emacs-devel@m.gmane.org; Wed, 02 Aug 2017 10:00:18 +0200 Original-Received: from localhost ([::1]:45917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcoZr-0005ch-2k for ged-emacs-devel@m.gmane.org; Wed, 02 Aug 2017 04:00:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcoZK-0005cQ-Mm for emacs-devel@gnu.org; Wed, 02 Aug 2017 03:59:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcoZK-0005Bo-0P for emacs-devel@gnu.org; Wed, 02 Aug 2017 03:59:50 -0400 Original-Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]:35966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcoZE-00057X-Rg; Wed, 02 Aug 2017 03:59:44 -0400 Original-Received: by mail-io0-x235.google.com with SMTP id g35so17403170ioi.3; Wed, 02 Aug 2017 00:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=wd8eTrMlw1e4R/IZB1OXcVPQ9C6pkNErChFTkTJ82J0=; b=E+HrtC7fKkRddhRaJoe36G6PapAeR6ESFGR5Hau2AFqvg8OWSFkuYh1cpIrM+CD3Kg mbrE0FL4KWnEePqbkiNWicS9WDYwkkPzTrCLu7jy5Wizhg/rBXuRBXxsIwfh7Cn59TEO s8U6yZ3dbNewC+DbU9Vm1QJIF3s6/RtMldOZpl8DQQG8MlPGojpqUbVsaMbU+Y4ge9Gm hJsmyspvviUUzPsjv0tzkyN7DgnGauXv+n8P73ueAWF6VGV9EDdEdGG22b2Vi6c0KDaM D1Ngo3XkZTzlzhzF6TrpLstOz5wUpNWXBHI/fWJ7O/QcyFfChWEZZHBfIW91LDaRLSON 0Isg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=wd8eTrMlw1e4R/IZB1OXcVPQ9C6pkNErChFTkTJ82J0=; b=ryAOWNqNFSeohFPSxBIks5plbXvoNzCS4KZXDmS6iJaYZWLgMkL8T9i7suVOAqQKBg lpVVyx/eodZu76isKq561vlM0k4LL5pd1HSgb/WNTOkfMSGIoNCOuy5FzVsMiEULT2wV NGtHN/vT2ZMt6dy23vI66+21e/zxqkGjg7lSP3SMP+qcYyOyk1RNjG+RvTx6eYCqgbGf 8F0mOv9lUYUR4EP0mlOUev+vKRdvq9DEOs7ucJeaYFBe0WSTFIXqHf/6enaQm/piUfLM ag25X3cccYBk0zYJOhjxElTS8peof93L0wm7Ryrp+vcQcIocagHpyFWpwx9VZ9l5IvNa zudg== X-Gm-Message-State: AIVw110OefWfJVN6z2nfRU7IqC8AMwEatLNl3+C/x8Twg/1mNxpyPqyN b2xEMUJc5/8Mog== X-Received: by 10.107.20.81 with SMTP id 78mr24434258iou.98.1501660784101; Wed, 02 Aug 2017 00:59:44 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id c67sm4612801iod.59.2017.08.02.00.59.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 00:59:43 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <87d18ewkes.fsf@detlef> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::235 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:217235 Archived-At: On Wed, 2 Aug 2017, Michael Albinus wrote: > Tino Calancha writes: > > Hi Tino. > >> 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? > > "/bin/sh" is OK. The feature works anyway only for methods defined in > tramp-sh.el. > > Alternatively, one could take the value of `explicit-shell-file-name', > which is prepared for connection-local variables. But I doubt, that many > people use it this way already. Thank you. I pushed in e82c4f56e6 (Don't assume /bin/sh as the 'sh' location in the local host) a fix: in the local connection check first for a non-nil value of explicit-shell-file-name to exists; otherwise it uses (executable-find "sh").