[
https://issues.apache.org/jira/browse/PIG-297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yiping Han updated PIG-297:
---------------------------
Attachment: PIG-297v2.patch
I made a new patch following Olga's suggestion.
With the new patch,
RM following the Unix rm style. User specify the -f option
rm [-f|-force] FILES...
If -f option is specified, only an error message printed but there is no
exception so the script won't fail. If an invalid option specified, an
exception will be thrown.
> RM a non-existing file should not fail the script
> -------------------------------------------------
>
> Key: PIG-297
> URL: https://issues.apache.org/jira/browse/PIG-297
> Project: Pig
> Issue Type: Improvement
> Components: grunt
> Reporter: Yiping Han
> Priority: Minor
> Attachments: PIG-297.patch, PIG-297v2.patch
>
>
> rm is commonly used to remove the existing output before re-execute a script.
> However, when the output is not existing, rm will fail and grunt will
> terminate the execution. Such a behavior is very inconvenience. Expected
> grunt behavior would print some error message and continue to execute the
> script.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.