$ echo $EDITOR /usr/bin/vim $ perl -e 'print $ENV{EDITOR} . "\n"' $ export EDITOR=/usr/bin/vim && perl -e 'print $ENV{EDITOR} . "\n"' /usr/bin/vim