t/test-lib.sh: provide a shell implementation of the 'yes' utility
commit8648732e298b74b25171c97e6ea144818f29c403
authorBrandon Casey <drafnel@gmail.com>
Fri, 28 Aug 2009 22:32:41 +0000 (28 17:32 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Aug 2009 23:36:24 +0000 (28 16:36 -0700)
treee43615a1c769e570acaa9c79e4f47d8b01a0c99c
parentaab9ea1aad2447522928d7e9af0bb030558012cb
t/test-lib.sh: provide a shell implementation of the 'yes' utility

Some platforms (IRIX 6.5, Solaris 7) do not provide the 'yes' utility.
Currently, some tests, including t7610 and t9001, try to call this program.
Due to the way the tests are structured, the tests still pass even though
this program is missing.  Rather than succeeding by chance, let's provide
an implementation of the simple 'yes' utility in shell for all platforms to
use.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh