logo

utils-std

Collection of commonly available Unix tools
commit: cb72e34861669ee203571beb318e167e7f0a4383
parent 27d1d702d23ca5cbfe38b8215da801789f94899c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 12 Apr 2024 20:13:49 +0200

test-cmd/yes.t: filter out error messages from echo

Diffstat:

Mtest-cmd/yes.t5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test-cmd/yes.t b/test-cmd/yes.t @@ -21,6 +21,9 @@ foo bar - $ yes >/dev/full + +Error messages from echo needs to be filtered out as it's often a shell builtin + $ set -o pipefail + $ yes 2>&1 >/dev/full | grep -v echo: yes: Write error [1]