JDK-8144221 : fix Nashorn shebang argument handling on Mac/Linux
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8u60,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-11-30
  • Updated: 2016-10-13
  • Resolved: 2015-12-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u112Fixed 9 b99Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Comments
Added proposal list to the issue.
14-12-2015

Cygwin will be covered in JDK-8145305.
14-12-2015

See http://cr.openjdk.java.net/~mhaupt/8144221/proposal.html for a discussion and proposals. Proposal #5 will be implemented.
07-12-2015

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.
30-11-2015