[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error found with latest (2.2.12) version on non Linux hosts

From: Michael Albinus
Subject: Re: error found with latest (2.2.12) version on non Linux hosts
Date: Fri, 17 Jul 2015 20:42:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Gilles Pion <address@hidden> writes:

Hi Gilles,

>> And the explanation is 
>> $ /bin/sh -l -c 'echo f3741e22b8b80b555d0f8445582a1250 \"$PATH\"'
>> -l: bad option(s)
>> (remote host is an AIX host BTW)
> This is coming from "tramp-get-remote-path" of "tramp-sh.el"
> AIX (and many others) "/bin/sh" doesn't supports "-l" option.

Thanks for the bug report.

I doubt "*many* others". This patch is already part of Tramp 2.2.11, and
it is also synchronized with Emacs' git trunk since last December. No
fault report so far.

However, this won't help you. Which shell is /bin/sh pointing to, on AIX?

And I don't see a simple way to avoid this problem. "/bin/sh -l ..." is
called only, when you have `tramp-own-remote-path' in
`tramp-remote-path'. Tramp must perform a shell login, in order to
determine your private $PATH settings. I can only change the code in
order to raise an error when "/bin/sh -l ..." fires a non-zero return
code. And it shall be mentioned in the manual.

Hmm. Does anybody come with a better idea?

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]