1 ;# $Id: editor.pl,v 3.0.1.1 1993/08/25 14:08:07 ram Exp $
3 ;# Copyright (c) 1991-1993, Raphael Manfredi
5 ;# You may redistribute only under the terms of the Artistic Licence,
6 ;# as specified in the README file that comes with the distribution.
7 ;# You may reuse parts of this distribution only within the terms of
8 ;# that same Artistic Licence; a copy of which may be found at the root
9 ;# of the source tree for dist 3.0.
11 ;# $Log: editor.pl,v $
12 ;# Revision 3.0.1.1 1993/08/25 14:08:07 ram
15 # Compute suitable editor name
17 local($editor) = $ENV{'VISUAL'};
18 $editor = $ENV{'EDITOR'} unless $editor;
19 $editor = $defeditor unless $editor;
20 $editor = 'vi' unless $editor;