Obscure Vi bug?
leland.f.derbenwick
lfd at cbnewsm.att.com
Sat Jul 21 07:48:00 AEST 1990
In article <462 at hitachi.uucp>, jon at hitachi.uucp (Jon Ryshpan) writes:
> [ ... ] Vi is Version
> SVR3.1. Also vi also often returns a nonzero status, despite the fact
> that nothing seems to have gone wrong.
Some versions of vi [I don't know exactly which ones, but they
include the one on cbnewsm :-( ] apparently count failed searches
and 'f', 't', etc., commands that you issued.
For example, if you edit a file, do three searches that return
"Pattern not found", then exit, vi will have a return code of 3.
For my own sanity, I have a shell called "vi" in my bin that runs
the /usr/bin/vi and then does an exit 0. That way I don't get
"couldn't run editor" messages when I try to post something like
this.
-- Speaking strictly for myself,
-- Lee Derbenwick, AT&T Bell Laboratories, Warren, NJ
-- lfd at cbnewsm.ATT.COM or <wherever>!att!cbnewsm!lfd
More information about the Comp.bugs.sys5
mailing list