[
https://issues.apache.org/jira/browse/PIG-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Gordon updated PIG-2801:
-----------------------------
Fix Version/s: 0.10.0
Affects Version/s: 0.10.0
Status: Patch Available (was: Open)
> grunt "sh" command should invoke the shell implicitly instead of calling exec
> directly with the command tokens
> --------------------------------------------------------------------------------------------------------------
>
> Key: PIG-2801
> URL: https://issues.apache.org/jira/browse/PIG-2801
> Project: Pig
> Issue Type: Sub-task
> Affects Versions: 0.10.0
> Reporter: John Gordon
> Fix For: 0.10.0
>
> Attachments: 0003-Grunt-Streaming-script-executor-changes.patch,
> 0008-Updating-test-execution-invocation-model.patch
>
>
> The "sh" command in grunt is very sensitive to the behavior of exec. It
> requires that you provide an executable filename as the first argument, and
> those are sort of up for interpretation from platform to platform. For this
> to easily handle batch scripts, built-in commands, and executables with one
> semantic, it should spin up an intermediate command-shell. This would
> translate "sh <command>" into "exec("sh" ["-c", <command>])". This helps to
> smooth out some of the operating system differences between Windows and
> Linux, and also improves usability of grunt as a whole.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira