From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command Date: Sun, 24 May 2020 19:27:53 +0300 Message-ID: <20200524162753.GB1047@protected.rcdrun.com> References: <86tv05ew1l.fsf@protected.rcdrun.com> <877dx1d8ga.fsf@gmx.de> <20200524144615.GG27992@protected.rcdrun.com> <878shhv0pq.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="102450"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.14.0 (2020-05-02) Cc: 41496@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 24 18:29:16 2020 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 1jctUy-000QZE-H7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 May 2020 18:29:16 +0200 Original-Received: from localhost ([::1]:58348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jctUx-0008Op-Gb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 May 2020 12:29:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jctUl-0008OY-0T for bug-gnu-emacs@gnu.org; Sun, 24 May 2020 12:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jctUk-0003Ot-Jg for bug-gnu-emacs@gnu.org; Sun, 24 May 2020 12:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jctUk-0002DR-FI for bug-gnu-emacs@gnu.org; Sun, 24 May 2020 12:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 May 2020 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41496 X-GNU-PR-Package: emacs Original-Received: via spool by 41496-submit@debbugs.gnu.org id=B41496.15903376988467 (code B ref 41496); Sun, 24 May 2020 16:29:02 +0000 Original-Received: (at 41496) by debbugs.gnu.org; 24 May 2020 16:28:18 +0000 Original-Received: from localhost ([127.0.0.1]:38513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctU2-0002CU-7G for submit@debbugs.gnu.org; Sun, 24 May 2020 12:28:18 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:50895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jctU0-0002CH-B0 for 41496@debbugs.gnu.org; Sun, 24 May 2020 12:28:17 -0400 Original-Received: from localhost ([::ffff:41.210.155.168]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000009FD60.000000005ECAA096.00006337; Sun, 24 May 2020 09:28:03 -0700 Content-Disposition: inline In-Reply-To: <878shhv0pq.fsf@gmx.de> X-BeenThere: debbugs-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" Xref: news.gmane.io gmane.emacs.bugs:180903 Archived-At: Hello Michael, Thanks for helping. * Michael Albinus [2020-05-24 17:59]: > Jean Louis writes: > > Hi Jean, > > >> I guess you need to add that directory to your remote PATH. See variable > >> `tramp-remote-path'. > > > > Thank you, I did change that, and I still get the same error. > > > > If I start emacs -Q, then I can login, it works well, provided I have > > changed that path. > > > > Do you know maybe how can I debug that? I need my Emacs settings and > > with it, I get this same error. > > Usually, you should bisect your ~/.emacs. That is, comment half of the > settings, and check whether it works. > > If it works, you know the problem is in the commented part, which you > can bisect, again. > > If it doesn't work, comment the other part of your ~/.emacs, and check > again. And so on, until you know the problematic setting in your ~/.emacs. > > > tramp-remote-path is a variable defined in ‘tramp-sh.el’. > > Its value is > > (tramp-default-remote-path "/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" > > "/data/data/com.termux/files/usr/bin") > > Maybe it is better to move "/data/data/com.termux/files/usr/bin to the > begin of that list? That did not work. Now I found that I cannot login when `emacs -q' and I can only login without problems when I am using `emacs -Q' I have then removed the non existent site-start.el it was dangling symbolic link, and then it started working with `emacs -q' I will try bisecting, but I am not sure. Each time I need to kill the ssh tramp process in background as well to debug what is wrong. Jean