From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: tramp and executable-find Date: Sat, 20 Jun 2020 21:14:09 +0200 Message-ID: <87366pzh1a.fsf@gmx.de> References: <871rm9u5hw.fsf@gmail.com> <87blldzntb.fsf@gmx.de> <877dw1zl8y.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67715"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel To: yyoncho Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 20 21:17:07 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmizD-000HVT-DO for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 21:17:07 +0200 Original-Received: from localhost ([::1]:46412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmizC-0003Zo-9x for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 15:17:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmiwS-0002t7-JP for emacs-devel@gnu.org; Sat, 20 Jun 2020 15:14:16 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:51493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmiwQ-00034C-Cq for emacs-devel@gnu.org; Sat, 20 Jun 2020 15:14:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1592680451; bh=rIL7uSZ4LwSnOQpl6iCLlTpN3wrJJDuvrVk6xH4W0ZA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=XfzoZGquukPvk2OkDezq2KpEYCtxmb2Bife1Rj25cb6BlmLkZkTQKeSqetOiAFL3q jBQF4uOd+Mlu4KlmU3Rwg/rtI8DXzsY28Nzjra7g9aLc5Z7aeAX72VUDGHXGVCngYr ssJC1i9hGF3Bpo0QZDYFgBguX4otPFtuuUpGW0/k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.148.8]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MPGRp-1jWSkQ0xED-00PaQ0; Sat, 20 Jun 2020 21:14:11 +0200 In-Reply-To: (yyoncho@gmail.com's message of "Sat, 20 Jun 2020 21:27:38 +0300") X-Provags-ID: V03:K1:yhO/Ryj7g4oO15N/Uzqs+6CbJYqeJYmP+K7ZEFR2FiLOyauzf6x aTfYCkKsfhuRwCWn+mX/CEznbBqdoW4ILdti+vjsltXRZB53pMI2juwUv4rFY0+XiBUgaII SuhdkZ58IATw+aLg9zwFte1YLMbdGLDi+fU2mKzzlQKfMcgXq4VrQgWpzVubZsQrLwxVJlg 5YSJL6ORX97S7Il2agGmQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:n7Arpyzi03Q=:PgU404oFWQfqqLDywdT4Jo ovZ5e9fM9GWPTlWOuDJFxL4qPxcwdidbTMIFfve4uLSfQN0TnSt/nFJb5keMYtmH95/9c5bwi fmEOdfXG3ao2DZ1kAhYdB1WDpA2wv6LDnW+jlzJoT/lsuws1lFj9zZ6Qj8sCnwP8IxseC+pal aqazuxXLFgWBFD/U/9uxXiZ2DA3oZvD32qvjUEyQ7POKoPmOyauh14k/AOfIS8JA/Y4rvzuYW YOR1lARqy/szGdAlOWmJLqsUeEnUwOyTovJ7m0PsTOQnSzhIB8B+mcfS9cGLb8hacWuVRcVig f19Iy2YOM03eK3IGARbTC21rgqhEfjg4vu7wzEVATKi2u6OJFOmXlT87G5Fg6wmWvgklqpTFs hKKQ4gdRW7PBEvSLwIH4x2UwaVyF97bOKwXZRFQhyy/Y6G7IJIJp4QexW98YU6s8QKbbQMjaR Xck1rOjn7iuVq4WsSMZq36YcaK+I/ThhXccqaWphDwGYOHRAVo/IL8aDSvjcmEOgLZuD8CRST CCA07C3bBoYfENpav5GDu/Z8MmMcGoErwA+mvmcb3j7rHLrY/Wa6mQci34qqvCrYjI+d51bFk +CgRcL5LhYAdpE04CItPLJSNfMUbLqR/GfabRp2FJKGJWCINe51dKqBUqv0D4uL5xI1WTPpXW jThJx9rN94CQJMItbd2whUMljsgHDCt3W4V+eiYGz8bAg5OPhZYdFXKq7JBrBQTLLQHcSg86w n/JRQRIwZHfMyD7E5BL4KP3mX/nEq13naFazRgT9SGFeRAh0kJfobO+UZjlEpybaoiVFBI1H Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/20 13:43:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252457 Archived-At: yyoncho writes: > Here it is an example: > > Copy ls from /bin/ and name it lss. > > Then: > > ;; works=20 > (let ((default-directory "")) > (executable-find "lss" 'remote))=20 > > ;; does not work > (let ((default-directory "")) > (executable-find "/bin/lss" 'remote)) But this second example doesn't make sense. You want to know the path, where the executable "lss" is located. Why do you want to give an absolute file name as argument? The docstring of executable-find says "Search for COMMAND in =E2=80=98exec-= path=E2=80=99". A command is a command, and not an absolute file name. *If* you want to use an absolute file name, you would need to give it also to the command, like (let ((default-directory "")) (executable-find "/bin/lss" 'remote)) where is something like /ssh:user@host: - you see that this doesn't make sense. Search for "lss", that's it, as you have shown with your first example. > Thanks, > Ivan Best regards, Michael.