diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-26 02:43:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-26 02:43:35 +0000 |
commit | c404b3b9c6b7ecdfcfbe456ccc07821135b19c90 (patch) | |
tree | 512f46546e5285e84a6525cea9699e1bc536e3b2 /libgo | |
parent | 03f7544f8d39d2c1f65280f5c78fde03e3d723c2 (diff) | |
download | gcc-c404b3b9c6b7ecdfcfbe456ccc07821135b19c90.zip gcc-c404b3b9c6b7ecdfcfbe456ccc07821135b19c90.tar.gz gcc-c404b3b9c6b7ecdfcfbe456ccc07821135b19c90.tar.bz2 |
libgo: don't use wc in gotest
The wc command is not in the GNU approved list of Makefile utilities
(https://www.gnu.org/prep/standards/html_node/Utilities-in-Makefiles.html#Utilities-in-Makefiles).
Reviewed-on: https://go-review.googlesource.com/c/144897
From-SVN: r265515
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/testsuite/gotest | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index f1309ab..0b2e572 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -518,10 +518,9 @@ symtogo() { local ndots="" for tp in $* do - s=$(echo $tp | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//') + s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//') # screen out methods (X.Y.Z) - ndots=$(echo $s | sed -e 's/\./ /g' | wc -w) - if [ $ndots -ne 2 ]; then + if ! expr "$s" : '^[^.]*\.[^.]*$' >/dev/null 2>&1; then continue fi if [ -z "${result}" ]; then |