From owner-freebsd-stable Sat Apr 24 17:19:52 1999 Delivered-To: freebsd-stable@freebsd.org Received: from ymris.ddm.on.ca (p44.radon.sentex.ca [207.245.238.109]) by hub.freebsd.org (Postfix) with ESMTP id 62B2114DDE for ; Sat, 24 Apr 1999 17:19:48 -0700 (PDT) (envelope-from dchapes@ddm.on.ca) Received: from squigy.ddm.on.ca (squigy.ddm.on.ca [204.50.152.10]) by ymris.ddm.on.ca (8.8.8/8.8.8) with ESMTP id UAA00224; Sat, 24 Apr 1999 20:19:25 -0400 (EDT) (envelope-from dchapes@squigy.ddm.on.ca) From: Dave Chapeskie Received: (from dchapes@localhost) by squigy.ddm.on.ca (8.9.2/8.8.7) id UAA27595; Sat, 24 Apr 1999 20:19:23 -0400 (EDT) Message-ID: <19990424201923.50629@ddm.on.ca> Date: Sat, 24 Apr 1999 20:19:23 -0400 To: SDS Cc: freebsd-stable@FreeBSD.ORG Subject: Re: vi dumping the core... Mail-Followup-To: SDS , freebsd-stable@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from SDS on Sat, Apr 24, 1999 at 05:28:33PM -0500 X-no-archive: yes Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Apr 24, 1999 at 05:28:33PM -0500, SDS wrote: > vi > > ^\ (switch to ex mode) > hit ^\ again > > *plop* The best solution is to use "Q" to enter ex mode (or just start the editor as "ex"). The reason for the core dump is that '^\' is the default QUIT character (look at the output of "stty -a"). The QUIT character causes SIGQUIT to be sent and the default action for SIGQUIT is to dump core and exit. In "vi" mode the terminal is in raw mode which means that "special" characters are not interpreted as such. In "ex" mode however the terminal is in canonical mode and all the special characters are interpreted according to the stty settings. If you never use the QUIT character you could also run the following: stty quit undef to disable the special meaning of ^\. (You could put this command in your .login file). You should also read the stty man page. -- Dave Chapeskie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message