Lars Volker has posted comments on this change.

Change subject: IMPALA-4006: dangerous rm -rf statements in scripts
......................................................................


Patch Set 5:

Thanks for fixing this. Would "set -u" help in those cases, too?

>From 
>http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_25

When the shell tries to expand an unset parameter other than the '@' and '*' 
special parameters, it shall write a message to standard error and shall not 
execute the command containing the expansion, but for the purposes of setting 
the '?' special parameter and the exit status of the shell the command shall be 
treated as having been executed and returned an exit status of between 1 and 
125 inclusive. A non-interactive shell shall immediately exit. An interactive 
shell shall not exit.

-- 
To view, visit http://gerrit.cloudera.org:8080/4078
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I7503794180dee99eeb979e67f34e3b2edade70fe
Gerrit-PatchSet: 5
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Zoltan Ivanfi <[email protected]>
Gerrit-Reviewer: Lars Volker <[email protected]>
Gerrit-Reviewer: Michael Ho <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Zoltan Ivanfi <[email protected]>
Gerrit-HasComments: No

Reply via email to