On Thu, Sep 20, 2007 at 07:08:31PM +0200, Miklos Vajna wrote: > +test_expect_success "create the submodules" ' > + for i in a b c d > + do > + mkdir $i && > + cd $i && > + git init && > + echo "module $i" > $i.txt && > + git add $i.txt && > + git commit -m "Initial commit, submodule $i" && > + cd .. > + done Silly question: why use the '&&' when you can 'set -e'? As it currently stands, a failure will still go back around the loop... Joel -- "Sometimes when reading Goethe I have the paralyzing suspicion that he is trying to be funny." - Guy Davenport Joel Becker Principal Software Developer Oracle E-mail: joel.becker@xxxxxxxxxx Phone: (650) 506-8127 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html