Explicitly use bash for the ld testsuite.
authorMatthias Klose <doko@ubuntu.com>
Wed, 17 Jun 2026 07:10:18 +0000 (09:10 +0200)
committerMatthias Klose <doko@debian.org>
Wed, 17 Jun 2026 07:10:18 +0000 (09:10 +0200)
Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

ld/testsuite/config/default.exp

index 3c16e7b71584d13acb2b42dca2e3b878c57fd20b..51773e3cb5451b336def36fecc98635744b243ca 100644 (file)
@@ -209,7 +209,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
 }