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

1 messages from 2008-08-11 to 2008-08-11. Participants: Francis Moreau.
Thread: https://gitlist.dev/t/14931

## Francis Moreau, 2008-08-11 14:00

Subject: git-bisect: weird usage of read(1)
Message-ID: <38b2ab8a0808110700x595448fco46d24a3e6582d024@mail.gmail.com>
URL: https://gitlist.dev/e/38b2ab8a0808110700x595448fco46d24a3e6582d024%40mail.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

```
