]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 17448] Ignore whitespace around $(file ...) names
authorPaul Smith <psmith@gnu.org>
Sun, 8 Jan 2023 23:06:54 +0000 (18:06 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 8 Jan 2023 23:06:54 +0000 (18:06 -0500)
commit36f955b0e8d2c1b5be292eb84475c44eea6403c8
treef6a545954d76b34db79b96ce6644429b9a674253
parenta275f4e9ab14a2ff827b67b46dd3bc746cdba328
[SV 17448] Ignore whitespace around $(file ...) names

The other issues related to whitespace reported in this bug are
not addressed by this change.

* src/functions.c (func_file): Strip whitespace from the start and
end of the filename provided to the $(file ...) function.
* tests/scripts/functions/file: Add tests for this.
* tests/test_driver.pl: Use 3-arg version of open().
src/function.c
tests/scripts/functions/file
tests/test_driver.pl