From: Johannes Sixt Date: Tue, 25 Mar 2008 11:21:50 GMT Subject: Re: [PATCH 2/5] test_must_fail: 129 is a valid error code from usage() Message-ID: <47E8E04E.6060606@viscovery.net> In-Reply-To: Johannes Schindelin schrieb: > Hi, > > On Mon, 24 Mar 2008, Junio C Hamano wrote: > >> diff --git a/t/test-lib.sh b/t/test-lib.sh >> index 870b255..7c2a8ba 100644 >> --- a/t/test-lib.sh >> +++ b/t/test-lib.sh >> @@ -300,7 +300,7 @@ test_expect_code () { >> >> test_must_fail () { >> "$@" >> - test $? -gt 0 -a $? -le 128 >> + test $? -gt 0 -a $? -le 129 > > IIRC exit status is a signed byte on Win32. Can somebody check? Not at the shell level. This command: git branch foo bar baz exits with 129 both when invoked by bash ($?) and CMD (%ERRORLEVEL%). -- Hannes