GNU bug report logs - #23914
24.5; tramp-get-remote-path fails with some shells if tramp-own-remote-path is used

Previous Next

Package: emacs;

Reported by: Joel Ray Holveck <joelh <at> piquan.org>

Date: Fri, 8 Jul 2016 08:58:02 UTC

Severity: normal

Found in version 24.5

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Joel Ray Holveck <joelh <at> piquan.org>
Cc: 23914 <at> debbugs.gnu.org
Subject: bug#23914: 24.5; tramp-get-remote-path fails with some shells if tramp-own-remote-path is used
Date: Sat, 09 Jul 2016 13:38:28 +0200
Joel Ray Holveck <joelh <at> piquan.org> writes:

Hi Joel,

> On FreeBSD, if tramp-own-remote-path is a member of, then using tramp's
> sudo method raises an error similar to:
>
>     byte-code: `/bin/sh -l -c 'echo 9905dea968fdd4a549d307a722e8109b \"$PATH\"'' returns with error

Well, meanwhile Tramp doesn't raise an error anymore. It simply ignores
it, what's not a solution, I know.

> On FreeBSD, /bin/sh does not accept the -l flag.  bash, dash, and ksh
> do, but that's not part of the POSIX shell requirements (see
> http://pubs.opengroup.org/onlinepubs/009695399/utilities/sh.html), and
> historically the Bourne shell doesn't.

Unfortunately, Posix does not specify how to force a login shell,
evaluating its ~/.profile and friends. If somebody knows a portable way,
how one could determine the $PATH settings of a login shell, I'll add it
to Tramp happily.

Best regards, Michael.




This bug report was last modified 8 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.