aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2016-07-10 17:03:48 +0200
committerMichael Albinus2016-07-10 17:03:48 +0200
commit9a8edcd9aba1650f68d7aea373bab65322585337 (patch)
tree2bd67e7f94efbd1a0341650a6ea2da4bb15e3704
parent04a7977f700fc46cf29d5a41bc7dcffef71044c6 (diff)
downloademacs-9a8edcd9aba1650f68d7aea373bab65322585337.tar.gz
emacs-9a8edcd9aba1650f68d7aea373bab65322585337.zip
Add a note how to use `tramp-own-remote-path'
* doc/misc/tramp.texi (Inline methods, External methods) (Remote shell setup, Android shell setup) (Frequently Asked Questions, Frequently Asked Questions): Use @command and @samp consequently. (Remote programs): The remote shell must support the -l argument, in order to use `tramp-own-remote-path'. (Bug#23914)
-rw-r--r--doc/misc/tramp.texi25
1 files changed, 14 insertions, 11 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index dc3ef23c455..e8c181b2292 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -565,7 +565,7 @@ remote host.
565@command{ssh} can also take extra parameters as port numbers. For 565@command{ssh} can also take extra parameters as port numbers. For
566example, a host on port 42 is specified as @file{host#42} (the real 566example, a host on port 42 is specified as @file{host#42} (the real
567host name, a hash sign, then a port number). It is the same as passing 567host name, a hash sign, then a port number). It is the same as passing
568@code{-p 42} to the @command{ssh} command. 568@samp{-p 42} to the @command{ssh} command.
569 569
570@item @option{telnet} 570@item @option{telnet}
571@cindex method telnet 571@cindex method telnet
@@ -832,7 +832,7 @@ Since SMB shares end in the @code{$} character, @value{tramp} must use
832substitutions. 832substitutions.
833 833
834When @value{tramp} is not specific about the share name or uses the 834When @value{tramp} is not specific about the share name or uses the
835generic remote directory @code{/}, @command{smbclient} returns all 835generic remote directory @file{/}, @command{smbclient} returns all
836available shares. 836available shares.
837 837
838Since SMB authentication is based on each SMB share, @value{tramp} 838Since SMB authentication is based on each SMB share, @value{tramp}
@@ -1666,13 +1666,16 @@ shown below for @value{tramp} to use when connecting.
1666 1666
1667Another way to find the remote path is to use the path assigned to the 1667Another way to find the remote path is to use the path assigned to the
1668remote user by the remote host. @value{tramp} does not normally retain 1668remote user by the remote host. @value{tramp} does not normally retain
1669this remote path after logging. However, @code{tramp-own-remote-path} 1669this remote path after login. However, @code{tramp-own-remote-path}
1670preserves the path value, which can be used to update 1670preserves the path value, which can be used to update
1671@code{tramp-remote-path}. 1671@code{tramp-remote-path}.
1672 1672
1673@lisp 1673@lisp
1674(add-to-list 'tramp-remote-path 'tramp-own-remote-path) 1674(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
1675@end lisp 1675@end lisp
1676
1677@strong{Note} that this works only if your remote @command{/bin/sh}
1678shell supports the login argument @samp{-l}.
1676@end defopt 1679@end defopt
1677 1680
1678When remote search paths are changed, local @value{tramp} caches must 1681When remote search paths are changed, local @value{tramp} caches must
@@ -1864,7 +1867,7 @@ install and execute a listener as follows (see @code{tramp-methods}):
1864@end example 1867@end example
1865 1868
1866The above command-line syntax has changed with @command{busybox} 1869The above command-line syntax has changed with @command{busybox}
1867versions. If @command{nc} refuses the @command{-p} parameter, then 1870versions. If @command{nc} refuses the @samp{-p} parameter, then
1868overwrite as follows: 1871overwrite as follows:
1869 1872
1870@lisp 1873@lisp
@@ -1892,9 +1895,9 @@ Applications such as @code{SSHDroid} that run @command{sshd} process
1892on the Android device can accept any @option{ssh}-based methods 1895on the Android device can accept any @option{ssh}-based methods
1893provided these settings are adjusted: 1896provided these settings are adjusted:
1894 1897
1895@code{sh} must be specified for remote shell since Android devices do 1898@command{sh} must be specified for remote shell since Android devices
1896not provide @code{/bin/sh}. @code{sh} will then invoke whatever shell is 1899do not provide @command{/bin/sh}. @command{sh} will then invoke
1897installed on the device with this setting: 1900whatever shell is installed on the device with this setting:
1898 1901
1899@lisp 1902@lisp
1900(add-to-list 'tramp-connection-properties 1903(add-to-list 'tramp-connection-properties
@@ -2870,9 +2873,9 @@ To test if this is the case, open a remote shell and check if the output
2870of @command{ls} is in color. 2873of @command{ls} is in color.
2871 2874
2872To disable @acronym{ANSI} escape sequences from the remote hosts, 2875To disable @acronym{ANSI} escape sequences from the remote hosts,
2873disable @option{--color=yes} or @option{--color=auto} in the remote 2876disable @samp{--color=yes} or @samp{--color=auto} in the remote host's
2874host's @file{.bashrc} or @file{.profile}. Turn this alias on and off 2877@file{.bashrc} or @file{.profile}. Turn this alias on and off to see
2875to see if file name completion works. 2878if file name completion works.
2876 2879
2877@item 2880@item
2878File name completion does not work in directories with large number of 2881File name completion does not work in directories with large number of
@@ -2885,7 +2888,7 @@ shell's limit on length of command lines and hang. @value{tramp} uses
2885globbing. 2888globbing.
2886 2889
2887To test if globbing hangs, open a shell on the remote host and then 2890To test if globbing hangs, open a shell on the remote host and then
2888run @samp{ls -d * ..?* > /dev/null}. 2891run @command{ls -d * ..?* > /dev/null}.
2889 2892
2890When testing, ensure the remote shell is the same shell 2893When testing, ensure the remote shell is the same shell
2891(@command{/bin/sh}, @command{ksh} or @command{bash}), that 2894(@command{/bin/sh}, @command{ksh} or @command{bash}), that