@matheusbsbs / matheus-bagliano / commits / d4ea4e2746
Fork 0

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 <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Casey committed May 18, 2009 at 18:44 UTC d4ea4e27463576f33866b1c3f0fe41913fb03ef7
1 file changed +1 -1
t/t3901-i18n-patch.sh
+1 -1
@@ -19,7 +19,7 @@ check_encoding () {
19 8859)
20 grep "^encoding ISO-8859-1" ;;
21 *)
22 - ! grep "^encoding ISO-8859-1" ;;
22 + grep "^encoding ISO-8859-1"; test "$?" != 0 ;;
23 esac || {
24 bad=1
25 break