Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8167637

jshell tool: /edit should use EDITOR setting

XMLWordPrintable

    • b142
    • Verified

      If the editor has not been explicitly /set, the environment variable EDITOR should be used.

      Mark writes --
      Every Unix tool I've ever seen that uses EDITOR has assumed that the
      command defined by that environment variable will not return until the
      editing operation is complete. I think jshell can assume that too.

      ------------

      Research shows that if a tool allows visual editors that the VISUAL environment should be checked first. Many tools define their specific editor XXXXXEDITOR. So, environment variables will be tested in this order: JSHELLEDITOR, VISUAL, EDITOR.

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: