Trojan horse FIX for Rnmail and Pnews

Mark Brader msb at sq.uucp
Thu Dec 8 02:19:04 AEST 1988


merlyn at 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 at sq.com				not a feature.



More information about the Comp.unix.wizards mailing list