1 Author: Matthias Klose <doko@ubuntu.com>
2 Description: Explicitely use bash for the ld testsuite.
3 --- a/ld/testsuite/config/default.exp
4 +++ b/ld/testsuite/config/default.exp
6 #makefile rules, with embedded shell variable expansions.
7 #make wants $$shell_var, we want $shell_var ...
8 set cmd "host='$target_triplet' && . $srcdir/../configure.host && sed -e 's,\\\$\\\$,\$,g' <<EOF\n\$$varname\nEOF"
9 - set status [catch "exec sh -c [list $cmd]" result]
10 + set status [catch "exec bash -c [list $cmd]" result]
11 if $status { error "Error getting native link files: $result" }
12 set cmd "CC='$CC' && eval echo \"$result\""
13 - set status [catch "exec sh -c [list $cmd]" result]
14 + set status [catch "exec bash -c [list $cmd]" result]
15 if $status { error "Error getting native link files: $result" }
17 send_log "$varname = $result\n"
19 proc get_target_emul {} {
22 - set status [catch "exec sh -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
23 + set status [catch "exec bash -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
24 if $status { error "Error getting emulation name: $result" }