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

Nashorn shebang argument handling needs adjustment on Linux, Cygwin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u60, 9
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: