From 2b7c7497ef66eae3a178b666fe17af40495322a6 Mon Sep 17 00:00:00 2001 From: fanquake Date: Fri, 3 Dec 2021 15:18:45 +0800 Subject: [PATCH] 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> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c3c213a01c579..87271879c8800 100644 --- a/configure.ac +++ b/configure.ac @@ -44,7 +44,7 @@ case $host_os in # in expected paths because they may conflict with system files. Ask # Homebrew where each one is located, then adjust paths accordingly. if $BREW list --versions valgrind >/dev/null; then - valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null` + valgrind_prefix=$($BREW --prefix valgrind 2>/dev/null) VALGRIND_CPPFLAGS="-I$valgrind_prefix/include" fi else