[Git][ghc/ghc][master] Use '[' instead of '[[' because the latter is a Bash-ism

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Nov 10 00:17:44 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
7233b3b1 by PHO at 2023-11-09T19:17:01-05:00
Use '[' instead of '[[' because the latter is a Bash-ism

It doesn't work on platforms where /bin/sh is something other than Bash.

- - - - -


1 changed file:

- rts/configure.ac


Changes:

=====================================
rts/configure.ac
=====================================
@@ -408,7 +408,7 @@ dnl See Note [Undefined symbols in the RTS]
 
 [
 symbolExtraDefs=''
-if [[ "$CABAL_FLAG_find_ptr" = 1 ]]; then
+if [ "$CABAL_FLAG_find_ptr" = 1 ]; then
     symbolExtraDefs+=' -DFIND_PTR'
 fi
 
@@ -418,7 +418,7 @@ cat $srcdir/external-symbols.list.in \
     > external-symbols.list \
     || exit 1
 
-if [[ "$CABAL_FLAG_leading_underscore" = 1 ]]; then
+if [ "$CABAL_FLAG_leading_underscore" = 1 ]; then
     sedExpr='s/^(.*)$/  "-Wl,-u,_\1"/'
 else
     sedExpr='s/^(.*)$/  "-Wl,-u,\1"/'



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7233b3b1f88cdc8bc9b4e2c0235ab158ecbe9913
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/20231109/4c0f4025/attachment.html>


More information about the ghc-commits mailing list