git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Aug 11, 2008, 17:37 UTC
Message-ID
<38b2ab8a0808111037p36e7e4b3y438a2539bc447330@mail.gmail.com>
Signed-off-by:  Francis Moreau <francis.moro@gmail.com>
---
 git-bisect.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
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
Message 1 of 1 in “git-bisect: fix wrong usage of read(1)”
  1. git-bisect: fix wrong usage of read(1)Francis Moreau, Aug 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.