Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!oliveb!intelca!mipos3!pinkas From: pinkas@mipos3.UUCP (Israel Pinkas) Newsgroups: comp.emacs Subject: Re: Undesirable command line echoing in GNUmacs shells Message-ID: <371@mipos3.UUCP> Date: Thu, 15-Jan-87 20:45:42 EST Article-I.D.: mipos3.371 Posted: Thu Jan 15 20:45:42 1987 Date-Received: Fri, 16-Jan-87 21:39:41 EST References: <8701142109.AA21111@EDDIE.MIT.EDU> Reply-To: pinkas@mipos3.UUCP (Israel Pinkas) Organization: Intel, Santa Clara, CA Lines: 36 >I've noticed that when running M-x shell under GNU Emacs, each command >line gets repeated, e.g., > > % echo Hello > echo Hello > Hello > % > >From the prompt, you can probably quess that the environment variable >SHELL has been set to /bin/csh. > >Now watch what happens when I change SHELL to be /bin/ksh. > > $ echo Hi > Hi > $ > >Voila! The echoing of the command line disappears. > >Plausible conclusion: This has something to do with csh. I noticed that this happend to me as well. I am using Gnu 17.64, under Ultrix (version does not matter). I traced the problem to running tset in my .cshrc file. Since prompt gets set when running csh under emacs, I had to move tset to my .login. (Checking whether prompt is set is the recommended way for testing for interactive shells.) The symptoms that I got were that all commands echoed, and that there was a ^M at the end of every line. (Probably caused by the traslation to CR-LF.) -Israel -- ---------------------------------------------------------------------- UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!pinkas ARPA: pinkas%mipos3.intel.com@relay.cs.net CSNET: pinkas%mipos3.intel.com