From d4ea4e27463576f33866b1c3f0fe41913fb03ef7 Mon Sep 17 00:00:00 2001 From: Brandon Casey Date: Mon, 18 May 2009 18:44:42 -0500 Subject: [PATCH] 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 --- t/t3901-i18n-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2