diff options
-rw-r--r-- | t/test-lib.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index a5b8d03db0..f2ca536472 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -685,6 +685,21 @@ do esac done +# Provide an implementation of the 'yes' utility +yes () { + if test $# = 0 + then + y=y + else + y="$*" + fi + + while echo "$y" + do + : + done +} + # Fix some commands on Windows case $(uname -s) in *MINGW*) |