git-bisect: weird usage of read(1)
- From
- Francis Moreau <francis.moro@gmail.com>
- Date
- Aug 11, 2008, 13:57 UTC
- Message-ID
- <38b2ab8a0808110657y24ac9526wca4acea3bddaec00@mail.gmail.com>
Hello
I found this in git bisect:
printf >&2 'Are you sure [Y/n]? '
case "$(read yesno)" in [Nn]*) exit 1 ;; esacwhich looks very weird since read(1) returns a status and not the string reads from std input.
Am I missing something ?
Thanks
-- Francis