libgo: simplify gotest script to avoid sed substitution to \n

Reviewed-on: https://go-review.googlesource.com/c/145057

From-SVN: r265541
This commit is contained in:
Ian Lance Taylor 2018-10-26 18:36:44 +00:00
parent 075b562c44
commit 827651b074
2 changed files with 2 additions and 7 deletions

View File

@ -1,4 +1,4 @@
9785e5c4e868ba55efdb33fc51872b4821770167 8902fb43c569e4d3ec5bd143bfa8cb6bf2836780
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.

View File

@ -521,13 +521,8 @@ symtogo() {
if ! expr "$s" : '^[^.]*\.[^.]*$' >/dev/null 2>&1; then if ! expr "$s" : '^[^.]*\.[^.]*$' >/dev/null 2>&1; then
continue continue
fi fi
if [ -z "${result}" ]; then echo "$s"
result="${s}"
else
result="${result} ${s}"
fi
done done
echo "$result" | sed -e 's/ /\n/g'
} }
{ {