Fix not to display a garbase when exec(2) fails.
I prefer to use `for' statement if the loop has its loop variable.