From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72861: 30.0.90; remote tramp (30.0.90): Couldn't find a proper `ls' command Date: Fri, 30 Aug 2024 16:26:01 +0200 Message-ID: <87v7zit7d2.fsf@gmx.de> References: <87bk1cie1i.fsf@librehacker.com> <87jzfzhmoa.fsf@librehacker.com> <87le0f3kbk.fsf@gmx.de> <877cbzmk6h.fsf@librehacker.com> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5774"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 72861@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 30 16:27:28 2024 Return-path: Envelope-to: geb-bug-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 1sk2b2-0001I6-06 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Aug 2024 16:27:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sk2ah-000148-DQ; Fri, 30 Aug 2024 10:27:07 -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 1sk2ag-0000zx-8y for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 10:27:06 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sk2af-0001w4-WB for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 10:27:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=WI/dvgGna/ZjtoWi8bm3kwRgWiT6EqCvmk+BjuHvUyU=; b=ZyOZdcRziHM6TIhK2f0faczm6UQ2jhOAVys5+S/WTvlEPZIWMOX4WR1xRVBgaDg893QlOS4zm43qfhvKM1ozi/yHpQTjB6udB7h3CvNrtmm1o1xR9PloinfCbkRieEL0tZ7XUif9ooU+y5GVH10dDod9/UUMVBbkkyZhVs8gyJSBqyZELdvBvviI3J8f/XlBQfJFek++rvf0M6l5EZzVy0IDagaVOsMp3+iD0zCPLO6FmVnr2pkTjbNK0nQdemWCBQ2VU0b5nLgzYcSBbLg3tVJpcuHhK9D3h475x360iENAq2MFO4uPHgkbDg3Ou760Zf4KIN+7nuCzGOOgXvnKEw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sk2ba-0008GH-7h for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2024 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Aug 2024 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72861 X-GNU-PR-Package: emacs Original-Received: via spool by 72861-submit@debbugs.gnu.org id=B72861.172502803231674 (code B ref 72861); Fri, 30 Aug 2024 14:28:02 +0000 Original-Received: (at 72861) by debbugs.gnu.org; 30 Aug 2024 14:27:12 +0000 Original-Received: from localhost ([127.0.0.1]:53325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sk2al-0008Em-MO for submit@debbugs.gnu.org; Fri, 30 Aug 2024 10:27:12 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:34513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sk2ah-0008EC-0y for 72861@debbugs.gnu.org; Fri, 30 Aug 2024 10:27:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1725027964; x=1725632764; i=michael.albinus@gmx.de; bh=WI/dvgGna/ZjtoWi8bm3kwRgWiT6EqCvmk+BjuHvUyU=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=gaRGRNFPgH4/RAWz+QT9Re8xHdij3Wv12ZNMI1K38gWfnUbaUtJlXlDU/OlviDvY CGsYfrYH+WZEBAXDIYOYmYG31WbuOfgI9JaIMr3+lEL39zagVcPNn0+QYHRbrF7S+ YTsIW+QgGrZBP4prlhGbwIP8DXKGZZyp4w/48xjy39E31v9YUbN9hsCe08SeJPzXz 0bW2Y0aUhzYl5DM+swco3PFw2v/EBRg3OhZY/tOLBXgMrGy9kuKDzuAHcth3pgZYU hIN6IC2XWo0V8+GRVPWiIpn0BAz2loroTqvL6kmta6bp6QYgn1Uh1Zdt18Ok/s6xQ 6vDMEGtKV638gBpwAg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MiJV6-1s7vrh3taQ-00dmSs for <72861@debbugs.gnu.org>; Fri, 30 Aug 2024 16:26:04 +0200 In-Reply-To: <877cbzmk6h.fsf@librehacker.com> (Christopher Howard's message of "Thu, 29 Aug 2024 07:18:46 -0800") X-Provags-ID: V03:K1:3c4wUNpUybLT930iuFnRmMCuxwKfhAWF3+k8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bugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290965 Archived-At: Christopher Howard writes: Hi Christopher, > I did this within an "emacs -q" session, and all the output in *debug tramp/ssh localhost* buffer is pasted below. Thanks. Pls send the bug buffer as attachment next time; otherwise some formatting is lost. > From a quick glance at that, I wonder if the Emacs 30 version of tramp > is looking for "ls" only in the certain standard directories like /bin > and /usr/bin. On a guix system, however, no files are stored in these > directories, except links to "sh" and "env", as executables are > accessible from profile directories and the store via PATH. Hmm, let's see what Tramp does. All checks are successful, until it tries to determine the remote $PATH. > 07:06:38.821548 tramp-send-command (6) # echo \"`getconf PATH 2>/dev/null`\" 2>/dev/null; echo tramp_exit_status $? > 07:06:38.834376 tramp-wait-for-regexp (6) # > "/bin:/usr/bin" > tramp_exit_status 0 > ///ef73c2cb88ffee90faab20c0547acf27#$ This is what the underlying Linux says. Not su much, but there's also tramp-remote-path: > 07:06:38.936774 tramp-send-command (6) # tramp_bundle_read_file_names () { > echo "(" > while read file; do > quoted=`echo "$file" | sed -e "s/\"/\\\\\\\\\"/"` > printf "(%b" "\"$quoted\"" > if test -e "$file"; then printf " %b" t; else printf " %b" nil; fi > if test -r "$file"; then printf " %b" t; else printf " %b" nil; fi > if test -d "$file"; then printf " %b) > " t; else printf " %b) > " nil; fi > done > echo ")" > } 2>/dev/null; echo tramp_exit_status $? > 07:06:38.937570 tramp-wait-for-regexp (6) # > tramp_exit_status 0 > ///ef73c2cb88ffee90faab20c0547acf27#$ A shell script to be used. > 07:06:38.938707 tramp-send-command (6) # tramp_bundle_read_file_names <<'6695bafbd64274a59417f8a21005f192' 2>/dev/null; echo tramp_exit_status $? > /bin > /usr/bin > /sbin > /usr/sbin > /usr/local/bin > /usr/local/sbin > /local/bin > /local/freeware/bin > /local/gnu/bin > /usr/freeware/bin > /usr/pkg/bin > /usr/contrib/bin > /opt/bin > /opt/sbin > /opt/local/bin > /opt/homebrew/bin > /opt/homebrew/sbin > 6695bafbd64274a59417f8a21005f192 > 07:06:38.986779 tramp-wait-for-regexp (6) # > ( > ("/bin" t t t) > ("/usr/bin" t t t) > ("/sbin" nil nil nil) > ("/usr/sbin" nil nil nil) > ("/usr/local/bin" nil nil nil) > ("/usr/local/sbin" nil nil nil) > ("/local/bin" nil nil nil) > ("/local/freeware/bin" nil nil nil) > ("/local/gnu/bin" nil nil nil) > ("/usr/freeware/bin" nil nil nil) > ("/usr/pkg/bin" nil nil nil) > ("/usr/contrib/bin" nil nil nil) > ("/opt/bin" nil nil nil) > ("/opt/sbin" nil nil nil) > ("/opt/local/bin" nil nil nil) > ("/opt/homebrew/bin" nil nil nil) > ("/opt/homebrew/sbin" nil nil nil) > ) > tramp_exit_status 0 > ///ef73c2cb88ffee90faab20c0547acf27#$ A check, whether the other directories exist. Hmm, they don't. Therefore > 07:06:38.992727 tramp-send-command (6) # PATH=/bin:/usr/bin && export PATH > 07:06:39.041141 tramp-wait-for-regexp (6) # > ///ef73c2cb88ffee90faab20c0547acf27#$ And here we are. Just /bin:/usr/bin is in the PATH. What's needed is, that you expand tramp-remote-path by the directories guis keeps the system programs. See the Tramp manual (info "(tramp) Remote programs") See also bug#64534. This is a Guix bug, that's why I haven't seen it until now. But IIUC, Guix offers some Tramp config in its own version of Emacs. > Also, to be explicit: this was not a problem under 29.4 and goes away if I run my 29.4 executable again. Hmm, I cannot comment, since I don't run Guix. Could it be that you have used the Emacs package offered by Guix? As I understand bug#64534, it comes with a suitable tramp-remote-path. Best regards, Michael.