From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs 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 Message-ID: <8737njt51n.fsf@gmx.de> References: <87bn28a4nb.fsf@thor.piquan.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468064368 29374 80.91.229.3 (9 Jul 2016 11:39:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 11:39:28 +0000 (UTC) Cc: 23914@debbugs.gnu.org To: Joel Ray Holveck Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 09 13:39:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLqbK-0000hQ-03 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 13:39:14 +0200 Original-Received: from localhost ([::1]:49930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLqbJ-0004tD-9G for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 07:39:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLqbD-0004t8-1F for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLqb8-0007Db-SL for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLqb8-0007DX-OY for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLqb8-0005HK-KD for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:39: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: Sat, 09 Jul 2016 11:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23914 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23914-submit@debbugs.gnu.org id=B23914.146806432420258 (code B ref 23914); Sat, 09 Jul 2016 11:39:02 +0000 Original-Received: (at 23914) by debbugs.gnu.org; 9 Jul 2016 11:38:44 +0000 Original-Received: from localhost ([127.0.0.1]:43277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLqap-0005Gf-Jc for submit@debbugs.gnu.org; Sat, 09 Jul 2016 07:38:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:64792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLqaj-0005GQ-TK for 23914@debbugs.gnu.org; Sat, 09 Jul 2016 07:38:41 -0400 Original-Received: from detlef.gmx.de ([93.209.92.204]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MHHZT-1bZqwI3eJH-00E9Oj; Sat, 09 Jul 2016 13:38:30 +0200 In-Reply-To: <87bn28a4nb.fsf@thor.piquan.org> (Joel Ray Holveck's message of "Fri, 08 Jul 2016 01:57:28 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:39PfGPOUhzZDBUi2J7jHjxj4AhvkuoQT2+VTXMScVx7u7Ilt1bL O0asBqPL8SPkZntGCoWSi0oeldTHPERa2vhZfr/QERWeF2aAFhJ303RnsMlby7PlQUDqRxw abeXF9yQhoEb7KtkNfjVN5lM2iaEz+d8mDOP/TZ2o7ZtwHfXzkkx8pQWZKkGtj5LWec8ve3 zNRElJdvL1bv3a60nucLA== X-UI-Out-Filterresults: notjunk:1;V01:K0:KWmujPeRjxQ=:sWyodDIxLghxWXFepCnTV+ RNBoMLJ/jnodSoX1AfqiRexTxQJ2+VmwL//z5HLMDr2Ya3cE+PIWfFvCVgvpWeurTZvHhCACf xU7hUm4+XnffGCjb8z7bG6ke3yjGDm5R9trCMb3wdXbowd9s5ruG1p8NwrgrtKW1LsfhQrgRt W7rujY7Vqk604hTJe/P1n9QtK8wrtC+KBRj4163/2/M5ZVSFF5MxE8fJd/uQVqeoqUzELqGfY t4MypsT7FXoVeFmWiBDtu3lNA9SmDQFgJez5VRDtAarFOeYNd/aswvX4IaONXsL0hTEZPA6u1 Zhu3IlsFgliQyV9pANFiqi1HIJCEVedMKh6QKjwRvyMHjspUK81v3PylNnQulmFRAoiwVv5KI SJPbbG7atas/tXk5vv1xduWtlx6tlOfhtXMzEtmkiCP/DpdLB9vf5G2sJOcIqX2iklyTR7kxA AAOtojP+OveoO6CT5KNh7Qd/psYBg/n1UkhTfy46WAa/wouaptxCjiDZtEdcuwUyC1ZEO6jsm d93aNCQyANdJn9WoNQUMCnNchVvAuBylwJVk6aNkzR+r2leK+N+sQSX/dsculnKmoW1d1cbAU KwG7KTrvWosOFaJa/7Sd49kJabSvUg+Jy98oXptwPZ1596fmEl4A/8aD3Qk7oA0soHWYad9DW 6pTgLB8PAoT+lD0vPY8zmHkr91OGJ90Br04E5QlgNShZQEROYtNoNNgXnldfEg3pLvnoc12/W XNcpcNSuj79gt0YtRtd4Ise8mh5CJiuyEmjZMopp/ENTiblmG7zjsu8RuuVrVtUUeMbGuhY3 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120673 Archived-At: Joel Ray Holveck 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.