Explicitly use bash for the ld testsuite.
authorMatthias Klose <doko@ubuntu.com>
Sun, 1 Jan 2023 12:37:39 +0000 (12:37 +0000)
committerMatthias Klose <doko@debian.org>
Sun, 1 Jan 2023 12:37:39 +0000 (12:37 +0000)
Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

ld/testsuite/config/default.exp

index c1175c42760969a35907a65f7872640a29b3495f..ea5a0f0e226061532c8c17fdad4608fb2f51f20e 100644 (file)
@@ -178,7 +178,7 @@ load_lib ld-lib.exp
 proc get_target_emul {} {
     global target_triplet
     global srcdir
-    set status [catch "exec sh -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
+    set status [catch "exec bash -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
     if $status { error "Error getting emulation name: $result" }
     return $result
 }