vi/ex (v3.7) :recover problem.
Steve Grandi
grandi at noao.UUCP
Thu Nov 8 15:24:20 AEST 1984
Subject: Problem with ex/vi (version 3.7) :recover command
Index: /usr/src/ucb/ex/ex_cmds.c 4.2BSD
Description:
Recovering a "preserved" editor session following an editor
crash with the :recover command does not cause the "changed" flag to
be set; an immediate ZZ will cause the recovered changes to be lost forever.
Repeat-By:
Edit an existing file with vi. Cause an editor crash (pushing
the white button on the front of the 750 is one way; a more friendly
technique is the :preserve command). Once more start up vi to edit the
file and use :recover to restore things. IMMEDIATELY enter ZZ to save
the file. Look at the saved file and notice that the carefully
restored changes have disappeared.
Fix:
*** ex_cmds.c.ORIG Wed Jun 15 14:02:18 1983
--- ex_cmds.c Wed Nov 7 19:14:48 1984
***************
*** 516,522
tlaste();
#endif
laste = 0;
- sync();
nochng();
continue;
}
--- 516,521 -----
tlaste();
#endif
laste = 0;
nochng();
continue;
}
--
Steve Grandi, National Optical Astronomy Observatories, Tucson, AZ
Usenet: {allegra,arizona,astrovax,decvax,hao,ihnp4} !noao!grandi
Arpa: noao!grandi at lbl-csam
More information about the Comp.unix.wizards
mailing list