From: Olivier Marin Date: Wed, 18 Jun 2008 20:24:07 GMT Subject: Re: [PATCH 1/2 v2] t/test-lib.sh: add test_external and test_external_without_stderr Message-ID: <48596EE7.90202@free.fr> In-Reply-To: Hi, Lea Wiemann a écrit : > +# Like test_external, but in addition tests that the command generated > +# no output on stderr. > +test_external_without_stderr () { > + # The temporary file has no (and must have no) security > + # implications. > + tmp="$TMPDIR"; if [ -z "$tmp" ]; then tmp=/tmp; fi > + stderr="$tmp/git-external-stderr.$$.tmp" > + test_external "$@" 4> "$stderr" > + [ -f "$stderr" ] || eror "Internal error: $stderr disappeared." Just a typo here: s/eror/error/ Olivier.