[Git][ghc/ghc][wip/hadrian-windows-bindist] Apply shellcheck suggestion to SUBST_TOOLDIR

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Tue Aug 22 11:27:48 UTC 2023



Matthew Pickering pushed to branch wip/hadrian-windows-bindist at Glasgow Haskell Compiler / GHC


Commits:
d814f24c by sheaf at 2023-08-22T11:27:47+00:00
Apply shellcheck suggestion to SUBST_TOOLDIR
- - - - -


1 changed file:

- m4/fp_settings.m4


Changes:

=====================================
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



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d814f24cdee4ad499220a55c22d17d42d69104d8

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d814f24cdee4ad499220a55c22d17d42d69104d8
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230822/c0347278/attachment.html>


More information about the ghc-commits mailing list