Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!fernwood!oracle!news From: wmesard@oracle.com (Wayne Mesard) Newsgroups: comp.emacs Subject: Re: tcsh vs shell-mode Message-ID: <1990Sep24.224728.6094@oracle.com> Date: 24 Sep 90 22:47:28 GMT References: <1990Aug31.171026.15996@murdoch.acc.Virginia.EDU> Reply-To: wmesard@oracle.com (Wayne Mesard) Distribution: usa Organization: Oracle Corporation, Belmont CA Lines: 20 mattson@mbongo.ucsd.edu (Jim Mattson) writes: >esulzner@cadev6.intel.com (Eric Sulzner ~) writes: >>In article <1990Aug31.171026.15996@murdoch.acc.Virginia.EDU> wrp@biochsn.acc.Virginia.EDU (William R. Pearson) writes: >>> a sub-shell under GNUemacs, all of the lines are echoed... >>'stty -echo nl' works for me. >> [ more text deleted] >I use tcsh too, and for this problem, I have the following line in my .cshrc: > > if ($TERM == emacs) unset edit Look at the documentation for the shell command (say Control-H F shell ). It describes how the shell is selected. It looks at explicit-shell-file-name, not shell-file-name. I use tcsh normally, but csh when running under Emacs. From my .emacs file: (setq shell-file-name "/bin/csh") (setq explicit-shell-file-name shell-file-name) Wayne();