Tom Grennan <tmgrennan@xxxxxxxxx> writes: > +if ! test -r test-lib.sh ; then > + (cd ${0%/*} && ./${0##*/} $@) > + exit $? > +fi Not very nice; why is this an improvement? > . ./test-lib.sh > . "$TEST_DIRECTORY"/lib-gpg.sh > > +quiet () { "$@" >/dev/null; } > +silent () { "$@" >/dev/null 2>&1; } Not nice, either. > # Mon Jul 3 15:18:43 2006 +0000 > datestamp=1151939923 > setdate_and_increment () { > @@ -22,9 +30,9 @@ test_expect_success 'Create sample commit with known timestamp' ' > setdate_and_increment && > echo "Using $datestamp" > one && > git add one && > - git commit -m "Initial" && > + git commit -q -m "Initial" && > setdate_and_increment && > - git tag -a -m "Tagging at $datestamp" testtag > + quiet git tag -a -m "Tagging at $datestamp" testtag Why? Why? Why? cd t && sh ./t1234-frotz.sh would be silent enough and suppressing the output from the commands like this patch does makes it _harder_ for people to debug their changes to the script with sh ./t1234-frotz.sh -v Most of the change in this patch does nothing to do with "modernize style". -- 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