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

git-bisect: weird usage of read(1)

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Aug 11, 2008, 14:00 UTC
Message-ID
<38b2ab8a0808110700x595448fco46d24a3e6582d024@mail.gmail.com>
Hello
I found this in git bisect:
              printf >&2 'Are you sure [Y/n]? '
              case "$(read yesno)" in [Nn]*) exit 1 ;; esac

which looks very weird since read(1) returns a status and not the string reads from std input.

Am I missing something ?
Thanks
-- 
Francis
Message 1 of 1 in “git-bisect: weird usage of read(1)”
  1. Francis MoreauAug 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.