Xref: utzoo comp.unix.wizards:13240 news.sysadmin:1848 Checksum: 03469 Lines: 15 Path: utzoo!sq!msb From: msb@sq.uucp (Mark Brader) Date: Wed, 7-Dec-88 11:19:04 EST Message-ID: <1988Dec7.111904.28532@sq.uucp> Newsgroups: comp.unix.wizards,news.sysadmin Subject: Re: Trojan horse FIX for Rnmail and Pnews Summary: "$EDITOR" != "vi" References: <6798@rosevax.Rosemount.COM> Reply-To: msb@sq.com (Mark Brader) Organization: SoftQuad Inc., Toronto merlyn@ernie.rosemount.com writes: > ! ${VISUAL-${EDITOR-$defeditor}} '+set nomodeline' $tmpart $oldart Fix, humbug. The reason the first part of that line reads as it does is that not everybody uses the same editor! Try this, as a first approximation: editor=${VISUAL-${EDITOR-$defeditor}} case "$editor" in *vi|*ex) : adjust this to match local synonyms for vi editor="$editor '+set nomodeline'";; esac eval $editor $tmpart $oldart Mark Brader, SoftQuad Inc., Toronto BSD is a bug, utzoo!sq!msb, msb@sq.com not a feature.