diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-01-18 19:46:00 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-01-18 19:46:00 +0000 |
commit | 93a181275699210edce47fbdac0612571e711af9 (patch) | |
tree | adfffe4f1297b3a28774ea27b6f754532f998f10 /lisp/paths.el | |
parent | 201f9f2b7cc366d0ce9f5f9e541f35d779eb9792 (diff) | |
download | emacs-93a181275699210edce47fbdac0612571e711af9.tar.gz |
(remote-shell-program): New var.
Diffstat (limited to 'lisp/paths.el')
-rw-r--r-- | lisp/paths.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/paths.el b/lisp/paths.el index 843800042a8..37d86f967ff 100644 --- a/lisp/paths.el +++ b/lisp/paths.el @@ -112,6 +112,21 @@ Its name should end with a slash.") (t "fakemail")) ;In ../etc, to interface to /bin/mail. "Program used to send messages.") +(defconst remote-shell-program + (cond + ;; Some systems use rsh for the remote shell; others use that name for the + ;; restricted shell and use remsh for the remote shell. Let's try to guess + ;; based on what we actually find out there. The restricted shell is + ;; almost certainly in /bin or /usr/bin, so it's probably safe to assume + ;; that an rsh found elsewhere is the remote shell program. + ((file-exists-p "/usr/ucb/remsh") "/usr/ucb/remsh") + ((file-exists-p "/usr/ucb/rsh") "/usr/ucb/rsh") + ((file-exists-p "/bin/remsh") "/bin/remsh") + ((file-exists-p "/usr/bin/remsh") "/bin/remsh") + ((file-exists-p "/usr/local/bin/rsh") "/usr/local/bin/rsh") + ((memq system-type '(hpux usg-unix-v)) "remsh") + (t "rsh"))) + (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/") "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\"))) You may set this variable to nil in your `.emacs' file if you do not wish |