Xref: utzoo comp.unix.wizards:13248 news.sysadmin:1854
Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!marque!gryphon!desint!geoff
From: geoff@desint.UUCP (Geoff Kuenning)
Newsgroups: comp.unix.wizards,news.sysadmin
Subject: Re: Trojan horse FIX for Rnmail and Pnews
Message-ID: <1817@desint.UUCP>
Date: 6 Dec 88 21:18:55 GMT
References: <6798@rosevax.Rosemount.COM>
Reply-To: geoff@desint.UUCP (Geoff Kuenning)
Organization: Interrupt Technology Corp., Manhattan Beach, CA
Lines: 21

In article <6798@rosevax.Rosemount.COM> merlyn@ernie.rosemount.com writes:

> Here are the context diffs to fix Rnmail and Pnews.
> Larry Wall, do you copy?

Sorry, but these diffs are not exactly adequate.  They presume that
all users use vi, which is not at all true.

To support all editors, you would have to do something like:

    caes "${VISUAL-${EDITOR-$defeditor}}" in
	vi|*/vi|ex|*/ex)
	    nomodeline='+set nomodeline'
	    ;;
    esac

...

    ${VISUAL-${EDITOR-$defeditor}} ${nomodeline:+"$nomodeline"} $tmpart $oldart
-- 
	Geoff Kuenning   geoff@ITcorp.com   uunet!desint!geoff