aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-01-19 22:24:43 +0000
committerKarl Heuer1995-01-19 22:24:43 +0000
commit66263a7d6e5026f71e679353ee81e33f7a0e9244 (patch)
treedd19119700529d1661947777bcc501d8ac8d5354
parenta6a3acf0547ea14bdd57230ba9d98e59f030b8c7 (diff)
downloademacs-66263a7d6e5026f71e679353ee81e33f7a0e9244.tar.gz
emacs-66263a7d6e5026f71e679353ee81e33f7a0e9244.zip
(remote-shell-program): Reorder search path.
-rw-r--r--lisp/paths.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/paths.el b/lisp/paths.el
index 37d86f967ff..7d120e7e11b 100644
--- a/lisp/paths.el
+++ b/lisp/paths.el
@@ -118,13 +118,18 @@ Its name should end with a slash.")
118 ;; restricted shell and use remsh for the remote shell. Let's try to guess 118 ;; restricted shell and use remsh for the remote shell. Let's try to guess
119 ;; based on what we actually find out there. The restricted shell is 119 ;; based on what we actually find out there. The restricted shell is
120 ;; almost certainly in /bin or /usr/bin, so it's probably safe to assume 120 ;; almost certainly in /bin or /usr/bin, so it's probably safe to assume
121 ;; that an rsh found elsewhere is the remote shell program. 121 ;; that an rsh found elsewhere is the remote shell program. The converse
122 ;; is not true: /usr/bin/rsh could be either one, so check that last.
122 ((file-exists-p "/usr/ucb/remsh") "/usr/ucb/remsh") 123 ((file-exists-p "/usr/ucb/remsh") "/usr/ucb/remsh")
123 ((file-exists-p "/usr/ucb/rsh") "/usr/ucb/rsh") 124 ((file-exists-p "/usr/bsd/remsh") "/usr/bsd/remsh")
124 ((file-exists-p "/bin/remsh") "/bin/remsh") 125 ((file-exists-p "/bin/remsh") "/bin/remsh")
125 ((file-exists-p "/usr/bin/remsh") "/bin/remsh") 126 ((file-exists-p "/usr/bin/remsh") "/bin/remsh")
127 ((file-exists-p "/usr/local/bin/remsh") "/usr/local/bin/remsh")
128 ((file-exists-p "/usr/ucb/rsh") "/usr/ucb/rsh")
129 ((file-exists-p "/usr/bsd/rsh") "/usr/bsd/rsh")
126 ((file-exists-p "/usr/local/bin/rsh") "/usr/local/bin/rsh") 130 ((file-exists-p "/usr/local/bin/rsh") "/usr/local/bin/rsh")
127 ((memq system-type '(hpux usg-unix-v)) "remsh") 131 ((file-exists-p "/bin/rsh") "/bin/rsh")
132 ((file-exists-p "/usr/bin/rsh") "/usr/bin/rsh")
128 (t "rsh"))) 133 (t "rsh")))
129 134
130(defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/") 135(defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")