From c82770f57977a2b5add6e1378f234f8dd6153392 Mon Sep 17 00:00:00 2001
From: sheaf <sam.derbyshire@gmail.com>
Date: Tue, 22 Aug 2023 11:27:47 +0000
Subject: [PATCH] Apply shellcheck suggestion to SUBST_TOOLDIR

---
 m4/fp_settings.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/fp_settings.m4 b/m4/fp_settings.m4
index 719a991d2718..26b42d6c6032 100644
--- a/m4/fp_settings.m4
+++ b/m4/fp_settings.m4
@@ -44,7 +44,7 @@ dnl ghc-toolchain.
 AC_DEFUN([SUBST_TOOLDIR],
 [
     dnl and Note [How we configure the bundled windows toolchain]
-    $1=`echo "$$1" | sed 's%'"$mingw_prefix"'%'"$mingw_install_prefix"'%g'`
+set -- "$(echo "$$1" | sed 's%'"$mingw_prefix"'%'"$mingw_install_prefix"'%g')"
 ])
 
 # FP_SETTINGS
-- 
GitLab