JDK-8144142 : Nashorn shebang argument handling needs adjustment on Linux, Cygwin
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8u60,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-11-26
  • Updated: 2015-11-30
  • Resolved: 2015-11-27
Related Reports
Duplicate :  
Relates :  
Relates :  
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.