Explicitly use bash for the ld testsuite.
authorMatthias Klose <doko@ubuntu.com>
Wed, 10 Jul 2024 10:55:51 +0000 (12:55 +0200)
committerMatthias Klose <doko@debian.org>
Wed, 10 Jul 2024 10:55:51 +0000 (12:55 +0200)
Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

ld/testsuite/config/default.exp

index 8374920c775b4ef9865a4644a8b3fdda94b2012c..31136101e3288ba758d0e734cc759b31e7fcee56 100644 (file)
@@ -200,7 +200,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
 }