Explicitly use bash for the ld testsuite.
authorMatthias Klose <doko@ubuntu.com>
Fri, 7 Jan 2022 07:39:03 +0000 (07:39 +0000)
committerMatthias Klose <doko@debian.org>
Fri, 7 Jan 2022 07:39:03 +0000 (07:39 +0000)
Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

ld/testsuite/config/default.exp

index c988d5d29241dd27f17400a8b8d8f99dc236bbad..120546a61fb50776483314807d7df6b0c07f3a7f 100644 (file)
@@ -171,7 +171,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
 }