From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Luiz_Rom=C3=A1rio_Santana_Rios?= Newsgroups: gmane.emacs.help Subject: Re: tramp-sshfs doesn't seem to respect tramp-remote-path Date: Thu, 8 Aug 2024 10:13:00 -0300 Message-ID: <0359c325-007d-4cae-82b7-c262214c33a2@tecgraf.puc-rio.br> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10956"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 08 15:13:59 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 1sc2xq-0002iB-Nk for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Aug 2024 15:13:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sc2x8-0001U3-C6; Thu, 08 Aug 2024 09:13:16 -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 1sc2x5-0001TE-Q0 for help-gnu-emacs@gnu.org; Thu, 08 Aug 2024 09:13:11 -0400 Original-Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sc2x2-0004NI-BA for help-gnu-emacs@gnu.org; Thu, 08 Aug 2024 09:13:11 -0400 Original-Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-5d5bf833de7so483746eaf.2 for ; Thu, 08 Aug 2024 06:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecgraf-puc-rio-br.20230601.gappssmtp.com; s=20230601; t=1723122785; x=1723727585; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=h8R41rVRapEnfIiilJRa1mrPwRsGqAX7yUm+cd1BoeM=; b=WhJcxNaPxdGUVy2ppWKXtAPyMruERjz5cJXl7ix/sZSpFiWtgiEWglivmRfi1y2Yl9 zMA+7VzTL7o6ctKUv+bFAKeF+7bW5FHfxzp/NVXHFwUERL4jsRR27lscxmZjqJPKXLcv IBITELbSPEsseqG8J86SomIXjMpf/1LB6f/YBzvYkzQyzqz0dTNomkvjAc5PgJeCzSfV XRM63AChCcU7C+MgpwZk4unV7htX9C88VzZj6a8IKHKf2O/5BmEUeck+h4Hyg56WTfHV sS0t4aemwN2nbH2LwaSz5S37Dyd9LbWT/8wo7ijNR4Z7pfGUdotm5x3C8lEawdCIcjIe yP6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723122785; x=1723727585; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h8R41rVRapEnfIiilJRa1mrPwRsGqAX7yUm+cd1BoeM=; b=i3j7slad1v9NLw3BxCO8yVhgGVRtBj+Di+RbGnFY5OVwXxf30bilVi0emPzx0arcxE BypcOheYo5Mt0FnATFwwZBV4RMuQ7NM9/xThxLShmOE61qR5avfqdfVpiuBxJxMaNIWR kDa6loYvbZExLKcWhV80KIg0sxFEINb6trqwOr/6RmOKGO8vwuGE+9e1V0qd5fwbKq+S OnRLLfkdHgSKp1ywMRiSNqD4JB7usE7r21rmBgWWKPpIJnJCk0WsKcJaM/yA+V5mAKva V6hIFKZYBUlX+IxVjUTL/aujC12dCLdZXISieQgqizrv7jbuuA73Q95I5D6/nuf4DQiq Sl2A== X-Gm-Message-State: AOJu0YwFF5SP1bHFj+LQ/zi/1YVgKDtBLELNuwpp5djngsfm4/5xs4sG AhmAA+BRtFmy7yg20oPPL5kQluyNaFdw1azr+Dw0O1aoagpwcAvupsSsyCBaNz0= X-Google-Smtp-Source: AGHT+IH0BIeEpRzSGll9sedXrHFzKidj9pRkrDf+BylYQV1z0sz1cvMDPVlgt9ORJQARuT5fxJhHog== X-Received: by 2002:a05:6358:431c:b0:1af:3e47:4e3a with SMTP id e5c5f4694b2df-1b15cfe5ca2mr235843355d.24.1723122785243; Thu, 08 Aug 2024 06:13:05 -0700 (PDT) Original-Received: from [10.16.0.34] (gwvpn2.tecgraf.puc-rio.br. [139.82.86.198]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7b76346dc17sm9883859a12.24.2024.08.08.06.13.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Aug 2024 06:13:04 -0700 (PDT) Content-Language: en-US In-Reply-To: <87a5hxldfc.fsf@gmx.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::c2c; envelope-from=luizromario@tecgraf.puc-rio.br; helo=mail-oo1-xc2c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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:147543 Archived-At: Em 31/07/2024 13:43, Michael Albinus escreveu: > Not possible yet. You could write a wishlist request, via 'M-x report-emacs-bug'. > > Best regards, Michael. 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 ()   "Like `exec-path' for Tramp files."   (append    (with-parsed-tramp-file-name default-directory nil      (with-tramp-connection-property (tramp-get-process v) "remote-path"        (with-temp-buffer          (let (process-file-side-effects)        (process-file "getconf" nil t nil "PATH"))      ;; ... 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?