Subject: bin/3982: ftp ignores eofc
To: None <gnats-bugs@gnats.netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 08/13/1997 10:26:52
>Number:         3982
>Category:       bin
>Synopsis:       ftp ignores eofc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 13 07:35:01 1997
>Last-Modified:
>Originator:     der Mouse
>Organization:
	Dis-
>Release:        Sup of July 8th.
>Environment:
	SPARC SLC, also observed on a Sun-3/80.
>Description:
	At the ftp> prompt, my EOF character no longer exits.  ^D does
	- but my EOF character ain't ^D.  (gdb gets this right, for
	what that's worth, despite providing command-line editing.)
>How-To-Repeat:
	% stty eof \^Z
	% ftp nonexistent-host-name
	ftp: nonexistent-host-name: Unknown host
	ftp> 

	type ^Z and observe that nothing happens.
>Fix:
	It looks as though using -DSMALL when building ftp will rip out
	command-line editing (and nothing else, actually, despite the
	name).  I haven't tried this, but I assume it would then handle
	the EOF character correctly.  It looks as though libedit
	contains code (tty_bind_char()) to deal with this case, but it
	doesn't seem to be working (and it's broken anyway; for
	example, it assumes that one's EOF character should be bound to
	EM_DELETE_OR_LIST, which is nonsense - ^D should get the delete
	functionality, the list functionality should be separate, and
	both should be divorced from the EOF-character functionality).

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
>Audit-Trail:
>Unformatted: