From: Brandon Casey Date: Mon, 18 May 2009 23:44:42 +0000 (-0500) Subject: t3901: avoid negation on right hand side of '|' X-Git-Tag: v1.6.4-rc0~100^2^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d4ea4e27463576f33866b1c3f0fe41913fb03ef7;p=git.git t3901: avoid negation on right hand side of '|' Some shells do not properly handle constructs of the form: spew_something | ! process_input So rewrite this to be: spew_something | process_input; test $? != 0 Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- diff --git a/t/t3901-i18n-patch.sh b/t/t3901-i18n-patch.sh index 7655da3f8..b04f74aa7 100755 --- a/t/t3901-i18n-patch.sh +++ b/t/t3901-i18n-patch.sh @@ -19,7 +19,7 @@ check_encoding () { 8859) grep "^encoding ISO-8859-1" ;; *) - ! grep "^encoding ISO-8859-1" ;; + grep "^encoding ISO-8859-1"; test "$?" != 0 ;; esac || { bad=1 break