Code

Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Tue, 12 Aug 2008 02:24:28 +0000 (19:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Aug 2008 02:24:28 +0000 (19:24 -0700)
* maint:
  git-bisect: fix wrong usage of read(1)

git-bisect.sh

index 3cac20db79e1e408a321b0e9d272501985a3c49b..97ac600873ebd0dff6310071343403a41a867b8a 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...
                ;;