[PATCH] testsuite/cpio.tests: replace echo with $ECHO

Michael Tokarev mjt at tls.msk.ru
Thu Jun 11 11:51:43 UTC 2026


Not every implementation of echo understands -e, this
is why $ECHO is used elsewhere.  Replace echo -e with
$ECHO -e.

Signed-off-by: Michael Tokarev <mjt at tls.msk.ru>

diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests
--- a/testsuite/cpio.tests
+++ b/testsuite/cpio.tests
@@ -168,3 +168,3 @@ mkdir -p cpio.testdir/extract
 testing "cpio extract file outside of destination" "\
-(cd cpio.testdir/prepare/inner && echo -e '../dont_write\nto_extract' | cpio -o -H newc) | (cd cpio.testdir/extract && cpio -vi 2>&1) | sed 's:^../dont_write:dont_write:'
+(cd cpio.testdir/prepare/inner && $ECHO -e '../dont_write\nto_extract' | cpio -o -H newc) | (cd cpio.testdir/extract && cpio -vi 2>&1) | sed 's:^../dont_write:dont_write:'
 echo \$?


More information about the busybox mailing list