From: Johannes Schindelin Date: Thu, 28 Jul 2005 14:48:37 +0000 (+0200) Subject: [PATCH] support bc version 1.04 X-Git-Tag: v0.99.3~40 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=148519b7dc5a45ee73a85d39e4647099976be3b8;p=git.git [PATCH] support bc version 1.04 Test t6002 unnecessarily fails when bc is a bit older than average. Signed-off-by: Johannes.Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh index 6a7182082..99d86ae5a 100755 --- a/t/t6002-rev-list-bisect.sh +++ b/t/t6002-rev-list-bisect.sh @@ -11,8 +11,12 @@ bc_expr() { bc <=0) { return x; } else { return -x; } } -define floor(x) { save=scale; scale=0; result=x/1; scale=save; return result; } +define abs(x) { + if (x>=0) { return (x); } else { return (-x); } +} +define floor(x) { + save=scale; scale=0; result=x/1; scale=save; return (result); +} $* EOF }