summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-02-06 16:22:40 -0500
committerPaul Smith <psmith@gnu.org>2022-02-06 18:46:32 -0500
commit342a9bb54b36fc054c59cec961322a025634229f (patch)
treef02b40de85608da79b8b7af1c6fdeef136781cda /doc
parent6761122be03a65e8b013b5dd902bbea3a87d09e3 (diff)
downloadmake-git-342a9bb54b36fc054c59cec961322a025634229f.tar.gz
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.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions