git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-bisect: weird usage of read(1)
@ 2008-08-11 13:57 Francis Moreau
  2008-08-11 14:15 ` Johannes Schindelin
  2008-08-11 16:18 ` René Scharfe
  0 siblings, 2 replies; 16+ messages in thread
From: Francis Moreau @ 2008-08-11 13:57 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 16+ messages in thread
* git-bisect: weird usage of read(1)
@ 2008-08-11 14:00 Francis Moreau
  0 siblings, 0 replies; 16+ messages in thread
From: Francis Moreau @ 2008-08-11 14:00 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-08-11 19:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-11 13:57 git-bisect: weird usage of read(1) Francis Moreau
2008-08-11 14:15 ` Johannes Schindelin
2008-08-11 14:16   ` Mikael Magnusson
2008-08-11 14:18   ` Francis Moreau
2008-08-11 15:59     ` Reece Dunn
2008-08-11 16:23       ` Francis Moreau
2008-08-11 16:26         ` Reece Dunn
2008-08-11 16:29           ` Francis Moreau
2008-08-11 16:49       ` Petr Baudis
2008-08-11 17:01         ` René Scharfe
2008-08-11 17:05           ` Petr Baudis
2008-08-11 18:59           ` Junio C Hamano
2008-08-11 19:47             ` Francis Moreau
2008-08-11 16:18 ` René Scharfe
2008-08-11 17:38   ` Francis Moreau
  -- strict thread matches above, loose matches on Subject: below --
2008-08-11 14:00 Francis Moreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).