[PATCH] testsuite/cpio.tests: replace echo with $ECHO
Michael Tokarev via busybox <[email protected]> Thu, 11 Jun 2026 14:51:43 +0300
| Newsgroups | gmane.linux.busybox |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 \$?