From owner-freebsd-questions Tue Apr 2 03:21:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA06799 for questions-outgoing; Tue, 2 Apr 1996 03:21:47 -0800 (PST) Received: from nixpbe.pdb.sni.de (mail.sni.de [192.109.2.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id DAA06768 for ; Tue, 2 Apr 1996 03:21:38 -0800 (PST) Received: (from nerv@localhost) by nixpbe.pdb.sni.de (8.6.12/8.6.12) id LAA16805 for questions@freefall.freebsd.org; Tue, 2 Apr 1996 11:45:46 +0200 Message-Id: <199604020945.LAA16805@nixpbe.pdb.sni.de> Subject: Re: stty -echo -nl, emacs To: alk@Think.COM (Tony Kimball) Date: Tue, 2 Apr 96 10:40:00 MET DST From: Greg Lehey Cc: lehey.pad@sni.de, questions@freefall.freebsd.org In-Reply-To: <199604020545.XAA10841@compound>; from "Tony Kimball" at Apr 1, 96 11:45 pm X-Mailer: xmail 2.4 (based on ELM 2.2 PL16) Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Date: Wed, 27 Mar 96 9:56:20 MET > From: Greg Lehey > > Which shell are you using? With bash or ksh, > things work correctly (or at least the same way as under SunOS 4 and > 5). You shouldn't need to do any stty adjustments. If you still > can't get it to work, please tell me: > > 1. Which shell are you using. > 2. The output from stty -a when these problems occur. > > Greg > > I am using es, sans editline/readline. I don't know that one. Is it new? > ; stty -a > stty -a^M > speed 9600 baud; 0 rows; 0 columns;^M > lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl^M > -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo^M > -extproc^M > iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel ignbrk^M > brkint -inpck -ignpar -parmrk^M > oflags: opost onlcr -oxtabs^M > cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow^M > -dtrflow -mdmbuf^M > cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ;^M > eol2 = ; erase = ; intr = ^C; kill = ;^M ^^^^^^^ ^^^^^^^ You probably want to set erase to ^H and kill to (say) ^U here. > lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;^M > status = ; stop = ^S; susp = ^Z; time = 0; werase = ^W;^M The rest of the stty stuff looks fine. I can't see anything that's appending the ^M, so I assume it's the shell. > Now ash will at least drop the echo (so I infer that this is an es > bug, and I will fix it there) but still emits the annoying \015s. > ; sh > sh^M > $ date > Mon Apr 1 23:41:18 CST 1996^M > ^^ I see the ^Ms, but I'm confused. Above, you said 'es', now you're saying 'ash'. To the best of my knowledge, neither are standard with FreeBSD, though I at least know of ash. Do you have a particular reason to want to stay with this shell? Otherwise bash, ksh, or zsh should be upwards compatible with ash, and they don't exhibit these problems. Greg