From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: tramp-sshfs doesn't seem to respect tramp-remote-path Date: Thu, 08 Aug 2024 15:30:16 +0200 Message-ID: <87r0azkuqf.fsf@gmx.de> References: <072f5d9f-42d9-4d64-a9f0-e49ca0a1142d@tecgraf.puc-rio.br> <87h6c6g72m.fsf@gmx.de> <7a469804-eb2a-4aab-8e7f-31b4147c2f05@tecgraf.puc-rio.br> <871q39okab.fsf@gmx.de> <1a94e324-1a79-4c9a-8eeb-770e7249b523@tecgraf.puc-rio.br> <87a5hxldfc.fsf@gmx.de> <0359c325-007d-4cae-82b7-c262214c33a2@tecgraf.puc-rio.br> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1240"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Luiz =?utf-8?Q?Rom=C3=A1rio?= Santana Rios Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 08 15:31:19 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1sc3Eb-000078-G4 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Aug 2024 15:31:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sc3Dn-0001LQ-Qg; Thu, 08 Aug 2024 09:30:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sc3Dj-0001Kx-Rg for help-gnu-emacs@gnu.org; Thu, 08 Aug 2024 09:30:25 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sc3Dg-0006WN-9l for help-gnu-emacs@gnu.org; Thu, 08 Aug 2024 09:30:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1723123817; x=1723728617; i=michael.albinus@gmx.de; bh=Kc46jFbGDnT3qeMizhH76VSGI9caw32s9UDnD5zCMAc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=JAbl3q5q0F5x2Pu+Z3B4ES+Afmu23b40V5D9FZQOvJrbiZL+LsuFBeO6GW06PHl3 TTTaE0BXfo8HTsuHVaGdEO6ux1jwMUTvwNisyF9iQ2QMua5H22TWAtINSytc5UNAC oG6GQSzJmXNLN4IXmUun4gj2blKvdQyHKVc6P/tTP1rUaRtTlJHh0JW9p8YV+5zyk +YBYB/V2Pwy2HxpcvODPGpi+G3icN+EviWXTfeLNl65O+D8bWxAAmKrVSW4MASXiR J1tEG2PoMrEMNG4EpKxUYbLb67xPzjaCuedu3t1h43AOhYC2T5uT+2q62BKk65l69 L/S/Dt25+shqL+RbwA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M7K3i-1sYlQz1MJo-007rtL; Thu, 08 Aug 2024 15:30:17 +0200 In-Reply-To: <0359c325-007d-4cae-82b7-c262214c33a2@tecgraf.puc-rio.br> ("Lui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woR3st01J9pmzSsDjRmmwmCDUutTg /EOvLbfmhIziXGIvFP9BjXRfybBgNGKPSkUllVU0JoOGjUKUuVkWRoT0PUuIEtLmQ+PNYKhs Received-SPF: pass client-ip=212.227.15.18; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147544 Archived-At: Luiz Rom=C3=A1rio Santana Rios writes: Hi, > Thanks for the answer. I looked into this a little bit further and, > looking into the code for `tramp-sshfs-handle-exec-path`: > > (defun tramp-sshfs-handle-exec-path () > =C2=A0 "Like `exec-path' for Tramp files." > =C2=A0 (append > =C2=A0=C2=A0 (with-parsed-tramp-file-name default-directory nil > =C2=A0=C2=A0=C2=A0=C2=A0 (with-tramp-connection-property (tramp-get-proce= ss v) "remote-path" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (with-temp-buffer > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let (process-file-side-= effects) > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 (process-file "getconf" nil t nil "PATH")) > =C2=A0=C2=A0=C2=A0=C2=A0 ;; ... > > it seems to query the "remote-path" property. Only if the query fails, > does it get the default "PATH" variable from getconf (which is exactly > the "/bin:/usr/bin" I've been getting). Why does the query to > "remote-path" fail? The 'query the "remote-path" property' looks into the Tramp cache for the given connection. If there is a value, it is used. Otherwise, the code is executed, which is (process-file "getconf" nil t nil "PATH"). The result is stored in the cache; next time the function is called it uses the cached result. Best regards, Michael.