Skip to content

Commit 2b7c749

Browse files
fanquakehebasto
andcommitted
build: replace backtick command substitution with $()
This is only needed for the very oldest of non-POSIX-compatible shells. Note that this code will also only be executed on macOS, where it'd be very unlikely to run into such a shell. Followup to #1019. See: https://github.com/koalaman/shellcheck/wiki/SC2006 Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
1 parent 49f608d commit 2b7c749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ case $host_os in
4444
# in expected paths because they may conflict with system files. Ask
4545
# Homebrew where each one is located, then adjust paths accordingly.
4646
if $BREW list --versions valgrind >/dev/null; then
47-
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
47+
valgrind_prefix=$($BREW --prefix valgrind 2>/dev/null)
4848
VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
4949
fi
5050
else

0 commit comments

Comments
 (0)