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

Nashorn shebang argument handling needs adjustment on Linux, Cygwin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8u60, 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      With JDK-8143642, shebang argument handling was fixed for Mac OS X. On that platform, shebang arguments are passed in to Nashorn as an array of arguments separated along spaces. Linux passes the shebang arguments in to Nashorn as one string. This string needs to be split into single arguments properly, in which process delimited strings (with single or double quotes) must be taken into account.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: