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

streamline input parameter of Nashorn scripting $EXEC function

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs

      Backports

        Description

        Nashorn's scripting mode supports $EXEC to run shell commands. The second argument to an invocation of $EXEC can be a string representing standard input. Currently, passing null or undefined will coerce these into strings, when they should logically represent "no input", as much as the empty string represents "empty input".

        An OutputStreamWriter is currently created to pass on standard input to the external process. This is even the case when there is no input, and should be avoided.

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/d95394322204
          User: sundar
          Date: 2015-07-01 15:18:56 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/d95394322204 User: sundar Date: 2015-07-01 15:18:56 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/d95394322204
          User: lana
          Date: 2015-07-08 22:17:30 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/d95394322204 User: lana Date: 2015-07-08 22:17:30 +0000

            People

            • Assignee:
              mhaupt Michael Haupt
              Reporter:
              mhaupt Michael Haupt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: