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.lorimer.id.au/gitweb.git/diff_plain/d4ea4e27463576f33866b1c3f0fe41913fb03ef7?ds=inline;hp=--cc 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 --- d4ea4e27463576f33866b1c3f0fe41913fb03ef7 diff --git a/t/t3901-i18n-patch.sh b/t/t3901-i18n-patch.sh index 7655da3f8d..b04f74aa71 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