Date: Fri, 8 Sep 2000 08:40:02 -0700 (PDT) From: Laurent Frigault <lfrigault@teaser.fr> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/21089: vi silently corrupt open file on SIGINT when entering :wq in command mode Message-ID: <200009081540.IAA95864@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/21089; it has been noted by GNATS. From: Laurent Frigault <lfrigault@teaser.fr> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: misc/21089: vi silently corrupt open file on SIGINT when entering :wq in command mode Date: Fri, 8 Sep 2000 17:32:24 +0200 On Fri, Sep 08, 2000 at 03:33:40PM +0200, Sheldon Hearn wrote: > > >Number: 21089 > > >Category: misc > > >Synopsis: vi silently corrupt open file on SIGINT when entering :wq in > command mode > > As a datapoint, I don't see this behaviour in the development branch. > In fact, SIGINT doesn't even kill vi when it's in command state! It > just aborts out of command-state, as expected. > > Can anyone else confirm the results reported? If you enter <ESC>: SIGINT has no effect If you enter <ESC>:w The file is corrupted on SIGINT and you have a message : ================================= +=+=+=+=+=+=+=+ :w Interrupted Press any key to continue: ================================= and the file is save corrupted but you can re-write it with <ESC>:wq<ENTER> If you enter <ESC>:wq The file is save corrupted on SIGINT and vi terminate silently I have reproduced the problem under : FreeBSD victor.teaser.fr 5.0-CURRENT FreeBSD 5.0-CURRENT #10: Wed Aug 9 16:34:08 CEST 2000 lwa@victor.teaser.fr:/usr/src/sys/compile/VICTOR i386 Hope, this helps Laurent -- Laurent Frigault | <url:http://www.teaser.fr/~lfrigault> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009081540.IAA95864>