threads / patch / 14934

patchgit-bisect: fix wrong usage of read(1)

Subject: [PATCH] git-bisect: fix wrong usage of read(1)

## tl;dr

One message between Aug 11, 2008 and Aug 11, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Francis Moreau· Aug 11, 2008, 17:37 UTC · lore
Signed-off-by:  Francis Moreau <francis.moro@gmail.com>
---
 git-bisect.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to git-bisect.sh +2 −1
diff --git a/git-bisect.sh b/git-bisect.sh
index 3cac20d..97ac600 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...
 		;;
-- 
1.5.6.GIT

← back to recent threads