summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Brandon Casey <casey@nrlssc.navy.mil>2009-05-18 18:44:42 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-18 20:53:16 -0700
commitd4ea4e27463576f33866b1c3f0fe41913fb03ef7 (patch)
tree6d726a4d9ba15de8ba9d97bb7abdd36c73591fb9 /t
parentbuiltin-mailinfo.c: use "ISO8859-1" instead of "latin1" as fallback encoding (diff)
downloadtgif-d4ea4e27463576f33866b1c3f0fe41913fb03ef7.tar.xz
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t3901-i18n-patch.sh2
1 files changed, 1 insertions, 1 deletions
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