pai@cs.yale.edu (A. Satish Pai) (02/04/90)
Thanks to everyone who responded to my posting.
The problem I had was one of unwanted echoing and "^M" characters appearing in
the shell buffer. It turns out that this was because I was using tcsh as my
shell.
The solutions:
1. (the most popular response I got) Don't use tcsh, use csh or sh - you don't
really lose much of tcsh's features inside Emacs. The way to do this:
(setq explicit-shell-file-name "/bin/csh")
(setq shell-file-name "/bin/csh")
if you want csh, and similarly for /bin/sh
2. However, if you want to use tcsh in a shell buffer, the following line
should be added to the .cshrc file:
if ($?tcsh && &?EMACS) unset edit
It is not enough to add this to the .cshrc and then issue a "M-x shell"; you
need to log in with the new .cshrc for it to work.
[Thanks to Joe Weening (weening@Gang-of-Four.Stanford.EDU) for this.]
3. For a shell other than tcsh that gives this problem, the suggested solutions
are to use "stty nl" or "stty -echo nl".
Hope this helps others who have this problem.
-Satish.
--
-------------------------------------------------------------------------------
pai@cs.yale.edu This must be the most spartan .sig file ever