Skip to content

Commit db3366f

Browse files
authored
Merge pull request #4071 from martin-frbg/fix4010
Drop extraneous escaping in the basename call
2 parents 00057f4 + ff618ac commit db3366f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ if [ "`dirname \"$compiler_name\"`" != '.' ]; then
3535
cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/"
3636
fi
3737

38-
bn=`basename \"$compiler_name\"`
38+
cn= `echo $compiler_name | sed -e 's/ -.*//'`
39+
bn=`basename "$cn"`
3940

4041
case "$bn" in
4142
*-*) if [ "$bn" != '-' ]; then
4243
cross_suffix="$cross_suffix${bn%-*}-"
43-
cross_suffix=`echo $cross_suffix|sed -e 's/ -$//'`
4444
fi
4545
esac
4646

0 commit comments

Comments
 (0)