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>
Francis Moreau committed
Aug 11, 2008 at 19:37 UTC
e5d3afd78be54fc6e958c7ebad178593fd030441
1 file changed
+2
-1
git-bisect.sh
+2
-1
@@ -220,7 +220,8 @@ bisect_next_check() {
220
if test -t 0
221
then
222
printf >&2 'Are you sure [Y/n]? '
223
- case "$(read yesno)" in [Nn]*) exit 1 ;; esac
223
+ read yesno
224
+ case "$yesno" in [Nn]*) exit 1 ;; esac
225
fi
226
: bisect without good...
227
;;