Xref: utzoo comp.mail.elm:3928 comp.unix.sysv286:144 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!att!pacbell.com!pacbell!premenos!mtdiablo!rob From: rob@mtdiablo.Concord.CA.US (Rob Bernardo) Newsgroups: comp.mail.elm,comp.unix.sysv286 Subject: Re: elm can't find vi Message-ID: <1991Mar28.152724.23804@mtdiablo.Concord.CA.US> Date: 28 Mar 91 15:27:24 GMT References: <1991Mar27.033728.21388@msuinfo.cl.msu.edu> Organization: Mt. Diablo Software Solutions Lines: 19 engelsma@cpsin3.cps.msu.edu (Engelsma Jonathan) wrote: > >I recently got elm (2.3) running under Microport Unix SysV/AT (2.4). >Most of the time it works just fine. However sometimes when I send >mail I get the error message "Can't invoke editor '/usr/bin/vi' for >composition". Has anybody else experienced a problem like this? >Any suggestions? It seems strange that sometimes I can send mail >with no problems, and other times this error occurs. You have one of those brain-damaged vi's that exits with non-zero when no real error has occurred. Remedy: write a shell wrapper around vi that always exits with 0 and use that as you editor in elm. I understand this problem will be remedied in the next version of elm; it will ignore the exit value of the invoked editor and only pronounce failure if the exec fails. -- Rob Bernardo Mt. Diablo Software Solutions email: rob@mtdiablo.Concord.CA.US phone: (415) 827-4301