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

fix Nashorn shebang argument handling on Mac/Linux

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Backports

        Issue Links

          Activity

          Hide
          mhaupt Michael Haupt added a comment - - edited
          The original Nashorn behaviour is actually almost as intended. The documentation of the execve function states that the argument to the executable on the shebang line is (1) optional and (2) only one that should not contain any whitespace. Execve is documented at http://linux.die.net/man/2/execve - the relevant section is the one on Interpreter Scripts.
          Show
          mhaupt Michael Haupt added a comment - - edited The original Nashorn behaviour is actually almost as intended. The documentation of the execve function states that the argument to the executable on the shebang line is (1) optional and (2) only one that should not contain any whitespace. Execve is documented at http://linux.die.net/man/2/execve - the relevant section is the one on Interpreter Scripts.
          Hide
          mhaupt Michael Haupt added a comment -
          See http://cr.openjdk.java.net/~mhaupt/8144221/proposal.html for a discussion and proposals. Proposal #5 will be implemented.
          Show
          mhaupt Michael Haupt added a comment - See http://cr.openjdk.java.net/~mhaupt/8144221/proposal.html for a discussion and proposals. Proposal #5 will be implemented.
          Hide
          mhaupt Michael Haupt added a comment -
          Cygwin will be covered in JDK-8145305.
          Show
          mhaupt Michael Haupt added a comment - Cygwin will be covered in JDK-8145305 .
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/5fed6b47d01a
          User: mhaupt
          Date: 2015-12-14 13:04:40 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/5fed6b47d01a User: mhaupt Date: 2015-12-14 13:04:40 +0000
          Hide
          mhaupt Michael Haupt added a comment -
          Added proposal list to the issue.
          Show
          mhaupt Michael Haupt added a comment - Added proposal list to the issue.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/5fed6b47d01a
          User: lana
          Date: 2015-12-23 23:04:13 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/5fed6b47d01a User: lana Date: 2015-12-23 23:04:13 +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: