Explicitly use bash for the ld testsuite.
authorMatthias Klose <doko@ubuntu.com>
Mon, 3 Mar 2025 21:01:22 +0000 (22:01 +0100)
committerMatthias Klose <doko@debian.org>
Mon, 3 Mar 2025 21:01:22 +0000 (22:01 +0100)
Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

ld/testsuite/config/default.exp

index f93fb30ab071495b68dbd9914f4a5b1a9faee74e..c23daed71fa2687dc5c3afa7b4eabe7b7d5ceebc 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
 }