Code

git-bisect: fix wrong usage of read(1)
authorFrancis Moreau <francis.moro@gmail.com>
Mon, 11 Aug 2008 17:37:46 +0000 (19:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Aug 2008 23:48:11 +0000 (16:48 -0700)
Signed-off-by: Francis Moreau <francis.moro@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh

index 991b2ef37e5121d89f40d1b10964bf5d5beed40b..6c6c3de54a890cc4ba9927c6e8159c862cb231c4 100755 (executable)
@@ -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...
                ;;