diff options
author | Chris Green <greenc@fnal.gov> | 2019-03-14 16:16:26 -0500 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-03-14 16:16:26 -0500 |
commit | 9b51fb09f1c58e368d4821aa348d8817afb9affb (patch) | |
tree | 007640668b2408a52a99192c2e251cc3af78b283 /LICENSE-APACHE | |
parent | 1d73868333932675116cd97081591e477a55e436 (diff) | |
download | spack-9b51fb09f1c58e368d4821aa348d8817afb9affb.tar.gz spack-9b51fb09f1c58e368d4821aa348d8817afb9affb.tar.bz2 spack-9b51fb09f1c58e368d4821aa348d8817afb9affb.tar.xz spack-9b51fb09f1c58e368d4821aa348d8817afb9affb.zip |
Support VISUAL environment variable for editing. (#10898)
If the user has set the environment variable VISUAL, it will be used
in preference to EDITOR for all Spack editing activities. If VISUAL
is not set or fails (perhaps due to a lack of graphical editing
capabilities),EDITOR will be used instead. We fall back to one of
several common editors if neither bears fruit.
This feature has been tailored to:
* Provide identical behavior to the previous implementation in the
case that VISUAL is not set.
* Not require any change to code utilizing the editor feature.
* Follow usual UNIX behavior concerning VISUAL and EDITOR.
Diffstat (limited to 'LICENSE-APACHE')
0 files changed, 0 insertions, 0 deletions