David Abrahams <[email protected]> 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.
_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel