Obscure Vi bug?
Thomas Omerzu
omerzu at quando.quantum.de
Fri Aug 3 17:37:24 AEST 1990
In article <1990Aug2.211835.24599 at math-cs.kent.edu>
jstuart at math-cs.kent.edu (Jeff Stuart) writes:
>We have a problem here also with vi that when you edit a file and that
>file contains an ei: possibly followed by some text and then another :
>vi gives an error message. This happened on two machines, 1) Plexus
What you have discovered is the Ex/Vi-modeline feature;
a short Ex-manual excerpt:
| With the modeline option in effect, the editor checks the
| first five lines of the text file for commands of the form
| ex: command:
| or
| vi: command:
| if any are found, the editor executes them. This can result
| in unexpected behavior, and is not recommended in any case.
| In earlier releases, modeline was in effect by default. Now
| it is not, but setting it in the .exrc file or the EXINIT
| environment variable can still produce untoward effects.
On some versions of vi this feature does not only accept the
strings 'vi' and 'ex' but also combinations of them, i.e.
'vx' and 'ei'; this may be considered to be a bug and is
obviously the case with your vi-version.
--
*-----------------------------------------------------------------------------*
Thomas Omerzu UUCP: ...!unido!quando!omerzu / omerzu at quando.uucp
Quantum GmbH, Bitnet: UNIDO!quando!omerzu / omerzu%quando at UNIDO(.bitnet)
Dortmund, Germany Internet: omerzu at quando.quantum.de
More information about the Comp.unix.questions
mailing list