git-bisect: fix wrong usage of read(1) Signed-off-by: Francis Moreau <francis.moro@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/git-bisect.sh b/git-bisect.sh index 991b2ef..6c6c3de 100755 --- a/git-bisect.sh +++ b/git-bisect.sh
@@ -220,7 +220,8 @@ if test -t 0 then printf >&2 'Are you sure [Y/n]? ' - case "$(read yesno)" in [Nn]*) exit 1 ;; esac + read yesno + case "$yesno" in [Nn]*) exit 1 ;; esac fi : bisect without good... ;;