Menu

#2 Dont exit immediately on error, but continue to process file

open
nobody
None
5
2010-05-27
2010-05-27
No

Just as rm does, if there is any error, skip the current file and continue with the next one.

Every time that an error occurs, print an error message, then continue.
At the end, exit with an error status if any error occured during execution.

You could replace every "return" instruction inside the trash() function by the "continue" instruction.

JL

Discussion


Log in to post a comment.