make/tests/scripts
Paul Smith 342a9bb54b Don't write $(shell ...) stdout to stderr on failure
If a $(shell ...) invocation failed due to a command-not-found error,
make wrote the stdout of that shell to our stderr for some reason.
That seems very wrong.

If the command's stderr was not redirected then its output would have
already been written to its stderr, and if it was redirected then we
shouldn't take it upon ourselves to force it to go to stderr!

* src/function.c (func_shell_base): Append shell stdout even if the
shell command failed.
* tests/run_make_tests.pl: Determine the error generated for
command-not-found situations.
* tests/scripts/functions/shell: Verify that redirecting stderr to
stdout will behave properly if the command is not found.
2022-02-06 18:46:32 -05:00
..
features * tests/scripts/features/double_colon: Update for modern tests. 2022-02-06 18:46:32 -05:00
functions Don't write $(shell ...) stdout to stderr on failure 2022-02-06 18:46:32 -05:00
misc Special-case Windows error results 2021-11-28 14:27:10 -05:00
options tests: Enhance output to contain filename/line number info 2021-11-27 14:03:44 -05:00
targets [SV 61805] Support quoted whitespace in .SHELLFLAGS with .ONESHELL 2022-02-06 18:46:32 -05:00
variables Add support for the POSIX :::= assignment operator. 2021-09-20 00:29:31 -04:00
vms Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
test_template Update the test template. A few fixes in run_make_test(). 2004-09-22 04:36:17 +00:00