aboutsummaryrefslogtreecommitdiff
path: root/testsuite/make.tests
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-04-20 16:08:09 +0100
committerRon Yorston <rmy@pobox.com>2024-04-20 16:08:09 +0100
commit356bfacef7da39052d404e2db166996cf7b74d4d (patch)
treeecfb1fdec1ea3dcd5ff8a1b4010e322404b6e1d8 /testsuite/make.tests
parentec3bd5c462717a6cd1668f536c8aab9d76ea04b0 (diff)
downloadbusybox-w32-356bfacef7da39052d404e2db166996cf7b74d4d.tar.gz
busybox-w32-356bfacef7da39052d404e2db166996cf7b74d4d.tar.bz2
busybox-w32-356bfacef7da39052d404e2db166996cf7b74d4d.zip
make: skip shell -e option when running commands
POSIX says, regarding execution of commands: The execution line shall then be executed by a shell as if it were passed as the argument to the system() interface, except that if errors are not being ignored then the shell -e option shall also be in effect. As a non-POSIX extension, skip the use of the -e option. This is how GNU make and BSD make behave. (GitHub issue #409)
Diffstat (limited to '')
-rwxr-xr-xtestsuite/make.tests7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests
index 1fc95a8d2..c512fbdaa 100755
--- a/testsuite/make.tests
+++ b/testsuite/make.tests
@@ -497,6 +497,13 @@ test.b:
497' 497'
498cd .. || exit 1; rm -rf make.tempdir 2>/dev/null 498cd .. || exit 1; rm -rf make.tempdir 2>/dev/null
499 499
500# Don't use the shell -e option when running commands.
501testing "make no shell -e option when running commands" \
502 "make -f -" "OK\n" "" '
503target:
504 @false; echo OK
505'
506
500# An empty original suffix indicates that every word should have 507# An empty original suffix indicates that every word should have
501# the new suffix added. If neither suffix is provided the words 508# the new suffix added. If neither suffix is provided the words
502# remain unchanged. 509# remain unchanged.