From nobody@FreeBSD.ORG  Mon Jul 24 04:44:51 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 7978D37B5DF; Mon, 24 Jul 2000 04:44:51 -0700 (PDT)
Message-Id: <20000724114451.7978D37B5DF@hub.freebsd.org>
Date: Mon, 24 Jul 2000 04:44:51 -0700 (PDT)
From: oota@LSi.nec.co.jp
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: editline does not restore previous state
X-Send-Pr-Version: www-1.0

>Number:         20138
>Category:       bin
>Synopsis:       editline does not restore previous state
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ache
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 24 04:50:01 PDT 2000
>Closed-Date:    Wed Aug 16 08:07:12 PDT 2000
>Last-Modified:  Wed Aug 16 08:08:21 PDT 2000
>Originator:     HIROSHI OOTA
>Release:        4.0-RELEASE
>Organization:
NEC Corporation
>Environment:
FreeBSD xxx 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Sat Apr  8 02:49:15 JST 2000  xxx  i386
>Description:
editline does not restore previous state.

>How-To-Repeat:
stty -onlcr -echo
stty -e >s1

/usr/bin/ftp
ftp> quit

stty -e >s2
diff -u s1 s2

--- s1  Mon Jul 24 20:47:29 2000
+++ s2  Mon Jul 24 20:47:42 2000
@@ -1,10 +1,10 @@
 speed 9600 baud; 33 rows; 105 columns;
-lflags: icanon isig iexten -echo echoe -echok echoke -echonl echoctl
+lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc
 iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
        brkint -inpck -ignpar -parmrk
-oflags: opost -onlcr oxtabs
+oflags: opost onlcr oxtabs
 cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
        -dtrflow -mdmbuf
 discard dsusp   eof     eol     eol2    erase   intr    kill    lnext 


>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Thu Jul 27 17:07:49 PDT 2000 
State-Changed-Why:  
Fixed in libedit/tty.c v1.5 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20138 
State-Changed-From-To: closed->suspended 
State-Changed-By: ache 
State-Changed-When: Fri Jul 28 09:02:46 PDT 2000 
State-Changed-Why:  
Suspended util merge to -stable 
State-Changed-From-To: suspended->closed 
State-Changed-By: ache 
State-Changed-When: Wed Aug 16 08:07:12 PDT 2000 
State-Changed-Why:  
Merged into -stable 


Responsible-Changed-From-To: freebsd-bugs->ache 
Responsible-Changed-By: ache 
Responsible-Changed-When: Wed Aug 16 08:07:12 PDT 2000 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=20138 
>Unformatted:
