]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kmod.mk: Use portable printf '%s' over non-portable echo -n
authorJessica Clarke <jrtc27@FreeBSD.org>
Tue, 11 Jul 2023 20:30:06 +0000 (21:30 +0100)
committerJessica Clarke <jrtc27@FreeBSD.org>
Tue, 11 Jul 2023 20:30:06 +0000 (21:30 +0100)
commitd1e44bc94494448de196948d698b637b6e1df4bf
tree07d6a1ec1f772a3f0b9e071c745cd8db4bbc696e
parent0dea4f064dfcd0725d02b9b2d02b2494ca866857
kmod.mk: Use portable printf '%s' over non-portable echo -n

Whilst /bin/echo on macOS and Linux implement -n, as do the builtin
echos in bash and zsh, the builtin echo in dash does not, causing the
first line of the output to be -n foo rather than just foo, and there to
be an extra newline in the output and thus blank line, both of which
result in "Symbol ... is not present in *.kld" warnings appearing in the
build output (once for -n foo and once for the empty string for each
module where EXPORT_SYMS is a list of symbols).

MFC after: 1 week
sys/conf/kmod.mk