Skip to content

Commit 2c0db5e

Browse files
committed
Use printf %s instead of echo -n in build script
According to POSIX, the behavior of `echo -n` is "implementation defined". So we can't guarantee that it gives the same result everywhere. See also: * http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html * http://unix.stackexchange.com/q/65803/9814
1 parent 939c53e commit 2c0db5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/main.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CFG_PRERELEASE_VERSION=.1
2222

2323
# Append a version-dependent hash to each library, so we can install different
2424
# versions in the same place
25-
CFG_FILENAME_EXTRA=$(shell echo -n $(CFG_RELEASE) | $(CFG_HASH_COMMAND))
25+
CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE) | $(CFG_HASH_COMMAND))
2626

2727
ifeq ($(CFG_RELEASE_CHANNEL),stable)
2828
# This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"

0 commit comments

Comments
 (0)