[
https://issues.apache.org/jira/browse/PIG-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202055#comment-13202055
]
Thejas M Nair commented on PIG-2516:
------------------------------------
Yes, in some use cases you would not want the whole query to fail. But in such
cases, you can write a shell command that does not result in failure. eg "rm
-f" or "rm /nosuchfile || echo 'rm failed'".
> sh command should behave like fs command
> -----------------------------------------
>
> Key: PIG-2516
> URL: https://issues.apache.org/jira/browse/PIG-2516
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.9.1, 0.9.2
> Reporter: Thejas M Nair
> Labels: newbie
>
> Like fs command, sh command failure should result in query failure when run
> in batch mode. In interactive mode it should result in a warning.
> Also, sh command parsing seems to be faulty, according to Daniel, parser
> generated by PigScriptParser.jj would result in sh command using GetPath(),
> ie all sh commands might not be working.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira