* Michael Albinus <[email protected]> [2020-07-08 19:51]: > Jean Louis <[email protected]> writes: > > Hi, > > > What I can see is that shell-file-name is "/bin/sh" but it is > > incorrect, and I did not change my previous settings, Tramp was > > working just fine. Suddenly it does not work on any Android device. > > > > local variables: > > ================ > > ;; *tramp/scp motorola* > > (setq-local > > connection-local-variables-alist '((shell-command-switch . "-c") > > (shell-file-name . "/bin/sh")) > > default-directory "/scp:motorola:" > > ) > > This is the problem. You connect an Android device, which has the shell > somewhere else. Please read the Tramp manual how to set a connection > local variable; I guess you need "/system/bin/sh" as > `shell-file-name`.
Thank you and sorry for taking your time. I did set the tramp-remote-path correctly and it worked quite well for days. It was permanent settings. Suddenly this error that `ls' cannot be found started appearing and I could not connect to any device anymore. Because I already solved all issues, it was no resolution and I filed bug. Then yesterday I also noticed that shell-file-name is /bin/sh and I verified tramp-remote-path and I did not see the path that should be there: "/data/data/com.termux/files/usr/bin/" so I added it again, and now it works. Thanks, Jean
