JDK-8080490 : add $EXECV command to Nashorn scripting mode
Type:Enhancement
Component:core-libs
Sub-Component:jdk.nashorn
Affected Version:9
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2015-05-15
Updated:2015-09-29
Resolved:2015-06-09
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.
This is a follow-up to JDK-8049300. The $EXECV command should accept a number of parameters that it uses each as a single element of the command line to run.
For example:
jjs> $EXECV("ls", "-l", "a", "b c")
Comments
$EXEC has two arguments; the command line and the input to be used as stdin input. So, rather, extend the $EXEC argument list to accept more arguments or a single array containing arguments. The implementation of $EXEC should be redefined to accept a vararg for the additional arguments.