[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.1.15-pre); Missing PATH directories with sudo method
From: |
Michael Albinus |
Subject: |
Re: tramp (2.1.15-pre); Missing PATH directories with sudo method |
Date: |
Sun, 18 Jan 2009 09:42:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
David Abrahams <address@hidden> writes:
> The sudo method has a way of leaving out important directories from the
> PATH. For example:
>
> $ sudo sh -c 'echo $PATH'
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
>
> But if I
>
> `M-: (progn (find-file "sudo::/") (shell-command "echo $PATH"))'
>
> and switch to the "*Shell Command Output*" buffer, I see
>
> /bin:/usr/bin:/usr/sbin:/usr/local/bin
You can set the remote PATH via the variable `tramp-remote-path'. See
(info "(tramp)Remote Programs")
Best regards, Michael.