-
Bug
-
Resolution: Fixed
-
P3
-
8u60, 9
-
b96
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8163771 | 8u121 | Michael Haupt | P3 | Resolved | Fixed | b01 |
JDK-8156748 | 8u112 | Michael Haupt | P3 | Resolved | Fixed | b01 |
JDK-8167938 | emb-8u121 | Unassigned | P3 | Resolved | Fixed | b01 |
#!/usr/local/bin/jjs -scripting -- hello
print(arguments)
$ ./shebang.js world
jjs>
It is possible to at least have the script executed by inserting the name of the script file in the shebang line, but the arguments are not ordered properly:
#!/usr/local/bin/jjs -scripting shebang.js -- hello
print(arguments)
$ ./shebang.js world
hello,./shebang.js,world
- backported by
-
JDK-8156748 Nashorn shebang argument handling is broken
- Resolved
-
JDK-8163771 Nashorn shebang argument handling is broken
- Resolved
-
JDK-8167938 Nashorn shebang argument handling is broken
- Resolved
- duplicates
-
JDK-8144160 Regression: two tests fail on Windows with "ant test" target
- Closed
-
JDK-8144149 Nashorn shebang argument handling fix broke no-argument case
- Closed
-
JDK-8144142 Nashorn shebang argument handling needs adjustment on Linux, Cygwin
- Closed
- relates to
-
JDK-8144221 fix Nashorn shebang argument handling on Mac/Linux
- Resolved
-
JDK-8144142 Nashorn shebang argument handling needs adjustment on Linux, Cygwin
- Closed
-
JDK-8144113 Implement new tests to cover jjs functionality
- Resolved
-
JDK-8144160 Regression: two tests fail on Windows with "ant test" target
- Closed
-
JDK-8144149 Nashorn shebang argument handling fix broke no-argument case
- Closed