2010-03-30 11:16:57 |
Mario Ceresa |
description |
Actions emitted into the undo script are in the wrong order:
ex:
mkdir TEST_DIR
touch TEST_DIR/TEST_FILE
rm -rf TEST_DIR
outputs:
rm TEST_DIR/TEST_FILE
mkdir TEST_DIR
rm TEST_DIR
instead of:
mkdir TEST_DIR
touch TEST_DIR/TEST_FILE
rm TEST_DIR/TEST_FILE
rmdir TEST_DIR
Even if the results is the same, the incorrect order can give problem in more complicated situations and confuses the reader of the script. |
Actions emitted into the undo script are in the wrong order:
ex:
mkdir TEST_DIR
touch TEST_DIR/TEST_FILE
rm -rf TEST_DIR
outputs:
rm TEST_DIR/TEST_FILE
mkdir TEST_DIR
rm TEST_DIR
instead of:
mkdir TEST_DIR
touch TEST_DIR/TEST_FILE
rm TEST_DIR/TEST_FILE
rmdir TEST_DIR
Even if the result is the same, the incorrect order can give problem in more complicated situations and confuses the reader of the script.
|
|