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

Allow to run shebang script with --no-syntax-extensions

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8u66
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      A DESCRIPTION OF THE REQUEST :
      It's currently impossible to run a shebang script with --no-syntax-extensions

      JUSTIFICATION :
      I want to run my scripts with --no-syntax-extensions, as I want to keep them as "pure" as possible. However, I also want to provide parameters in the script itself, by using the shebang.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When "-scripting" is defined, either on the command line or in the shebang of the script, the shebang should not cause an error, regardless of whether --no-syntax-extensions is specified.
      ACTUAL -
      test.js:1:0 Expected an operand but found error
      #!jjs -strict -scripting
      ^


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: