File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -932,6 +932,15 @@ library for your script to use.
932
932
test_oid_init or test_oid_cache. Providing an unknown key is an
933
933
error.
934
934
935
+ - yes [<string>]
936
+
937
+ This is often seen in modern UNIX but some platforms lack it, so
938
+ the test harness overrides the platform implementation with a
939
+ more limited one. Use this only when feeding a handful lines of
940
+ output to the downstream---unlike the real version, it generates
941
+ only up to 99 lines.
942
+
943
+
935
944
Prerequisites
936
945
-------------
937
946
Original file line number Diff line number Diff line change @@ -1327,7 +1327,11 @@ then
1327
1327
fi
1328
1328
fi
1329
1329
1330
- # Provide an implementation of the 'yes' utility
1330
+ # Provide an implementation of the 'yes' utility; the upper bound
1331
+ # limit is there to help Windows that cannot stop this loop from
1332
+ # wasting cycles when the downstream stops reading, so do not be
1333
+ # tempted to turn it into an infinite loop. cf. 6129c930 ("test-lib:
1334
+ # limit the output of the yes utility", 2016-02-02)
1331
1335
yes () {
1332
1336
if test $# = 0
1333
1337
then
You can’t perform that action at this time.
0 commit comments