summaryrefslogtreecommitdiff
path: root/tests/misc/yes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/yes.sh')
-rwxr-xr-xtests/misc/yes.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/misc/yes.sh b/tests/misc/yes.sh
index 79f8b87c0..a5e81776e 100755
--- a/tests/misc/yes.sh
+++ b/tests/misc/yes.sh
@@ -31,7 +31,8 @@ done
# Check the many small items case,
# both fitting and overflowing the internal buffer
-if env true $(seq 4000); then
+external=env
+if external true $(seq 4000); then
for i in 100 4000; do
seq $i | paste -s -d ' ' | sed p > out.1
yes $(seq $i) | head -n2 > out.2