Interesting that the section on make gives an alternative to `$(shell ...)` that actually relies on a bashism. `$( )` command substitution isn't POSIX compatible. you would need to use backticks.
Re:What the GNU?
by forgotpwd16 on Thursday September 30, 2021 @03:45PM
(#28710467)
Opposite to common belief `$()` is the way to do it by the standard[0]. POSIX sh differs from Bourne shell.
[0]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
Just wanted to point out https://jmmv.dev/2021/08/useless-use-of-gnu.html, which also covers the portability problems that GNU has widely introduced and describes alternatives to the common issues.