From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pascal Quesseveur Newsgroups: gmane.emacs.help Subject: Strange behaviour on Windows 10 Date: Fri, 27 Sep 2019 14:48:41 +0200 Organization: Les Enchantements de Miraldra Message-ID: <824l0xoqfq.fsf@gmail.com> Reply-To: pquessev@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112015"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 27 14:49:13 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDpgO-000SzX-R6 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 14:49:12 +0200 Original-Received: from localhost ([::1]:49658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDpgN-0006Vq-8J for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 08:49:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51106) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDpg6-0006TU-3Y for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 08:48:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDpg5-0000iR-18 for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 08:48:54 -0400 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:43530 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iDpg4-0000iK-Q8 for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 08:48:52 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iDpg0-000SWR-FF for help-gnu-emacs@gnu.org; Fri, 27 Sep 2019 14:48:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: PQsr Cancel-Lock: sha1:Qkqqy6PE8DSDrThHfkDyzkpZnho= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121568 Archived-At: Hello, I am encountering a strange problem with emacs on Windows 10 (perhaps it is not related to emacs but I have not found nothing about it). I have written a cmd script on Windows 7 which uses plink to launch a remote command. The script works fine and I use it in emacs through (call-process) without problems. As Windows 10 comes with OpenSSH I decided to update my script and use ssh instead of plink. The script works fine, but it doesn't work anymore through (call-process). Calls to ssh cause an error: Le chemin d'accès spécifié est introuvable. which means the specified filepath cannot be found. ssh.exe is in C:/Windows/System32/OpenSSH and that directory is in PATH. It seems that when the script is activated by (call-process) it is unable to access the C:/Windows/System32/OpenSSH directory. I made the following test. #+BEGIN_EXAMPLE >type xtest.cmd @echo off if exist "C:\Windows\System32" (echo OK) else (echo NOK) if exist "C:\Windows\System32\OpenSSH" (echo OK) else (echo NOK) >xtest OK OK #+END_EXAMPLE and in emacs -Q (version 26.1): #+BEGIN_EXAMPLE (defun xtest() (interactive) (call-process "xtest" nil t nil)) M-x xtest OK NOK #+END_EXAMPLE The problem arises for OpenSHH directory but this is not the only case. Directory C:\Windows\System32\Microsoft doesn't work either. The problem is not limited to emacs as I also noted a stange behavior from which command from EzWin: #+BEGIN_EXAMPLE > which --version GNU which v2.20, Copyright (C) 1999 - 2008 Carlo Wood. (Modified for MS-Windows/MinGW by Eli Zaretskii.) > which ssh.exe which: no ssh.exe in (.;C:\Program...;C:\WINDOWS\System32\OpenSSH\;...) #+END_EXAMPLE -- Pascal Quesseveur pquessev@gmail.com