From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 12:15:15 +0000 (+0000) Subject: gettextize: git-bisect bisect_run + $@ messages X-Git-Tag: ko-pu~10^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6e0beb894c7852066ad2f30c3d70652f976fcd28;p=git.git gettextize: git-bisect bisect_run + $@ messages Gettextize bisect_run messages that use the $@ variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/git-bisect.sh b/git-bisect.sh index f715e8411..3b10ce677 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -366,14 +366,15 @@ bisect_run () { while true do - echo "running $@" + command="$@" + eval_gettext "running \$command"; echo "$@" res=$? # Check for really bad run error. if [ $res -lt 0 -o $res -ge 128 ]; then - echo >&2 "bisect run failed:" - echo >&2 "exit code $res from '$@' is < 0 or >= 128" + echo >&2 "$(eval_gettext "bisect run failed: +exit code \$res from '\$command' is < 0 or >= 128")" exit $res fi