Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ki!dwatts From: dwatts@ki.UUCP (Dan Watts) Newsgroups: comp.mail.elm Subject: Re: elm aborts when vi returns non-zero during composition Keywords: elm vi abort Message-ID: <811@ki.UUCP> Date: 18 Jul 90 12:21:41 GMT References: <138@comtst.UUCP> Organization: Ki Research, Inc. Derry, NH Lines: 27 In article <138@comtst.UUCP> mdv@comtst.UUCP (Mike Verstegen) writes: >As a very new elm user (compiled it yesterday), I've experienced a problem >with using vi in the composition mode during sending mail. > >elm invokes the editor in editmsg.c with a system call and then looks at the >return value from the system call for a zero exit status. Unfortunately, vi >exits with the number of "errors" encountered during the editing session >(such as searching for a non-existent pattern). elm then sees the non-zero >exit status and aborts. > ... stuff deleted ... >Mike Verstegen >uunet!comtst!mdv I too ran into the same problem on my SGI 3.2 system running the same version of elm (Elm 2.3 PL0, of May 1, 1990). I ended up defining the symbol WEXITSTATUS() in config.h to make it work correctly. My definition was: #define WEXITSTATUS(x) ((x) & 0xFF) and that made it work just fine. Perhaps the configuration script should ask about using WEXITSTATUS? -- ##################################################################### # CompuServe: >INTERNET:uunet.UU.NET!ki!dwatts Dan Watts # # UUCP : ...!uunet!ki!dwatts Ki Research, Inc. # ############### New Dimensions In Network Connectivity ##############