From: Francis Moreau Date: Mon, 11 Aug 2008 17:37:46 +0000 (+0200) Subject: git-bisect: fix wrong usage of read(1) X-Git-Tag: v1.6.0-rc3~8^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e5d3afd78be54fc6e958c7ebad178593fd030441?ds=inline;hp=--cc git-bisect: fix wrong usage of read(1) Signed-off-by: Francis Moreau Signed-off-by: Junio C Hamano --- e5d3afd78be54fc6e958c7ebad178593fd030441 diff --git a/git-bisect.sh b/git-bisect.sh index 991b2ef37e..6c6c3de54a 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -220,7 +220,8 @@ bisect_next_check() { 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... ;;