[ https://issues.apache.org/jira/browse/PIG-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Gordon updated PIG-2801: ----------------------------- Attachment: PIG-2801.trunk.0002.patch PIG-2801.trunk.0001.patch Resubmitting patches reformatted to be easier to apply with the patch command. > 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 > Assignee: John Gordon > Fix For: 0.11 > > Attachments: 0003-Grunt-Streaming-script-executor-changes.patch, > 0008-Updating-test-execution-invocation-model.patch, > PIG-2801.trunk.0001.patch, PIG-2801.trunk.0002.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