threads / discuss / 14931

git-bisect: weird usage of read(1)

Subject: git-bisect: weird usage of read(1)

## tl;dr

One message between Aug 11, 2008 and Aug 11, 2008.

replies: 0people: 1as markdown or json

Francis Moreau· Aug 11, 2008, 14:00 UTC · lore
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

← back to recent threads