From: Ian Lance Taylor Date: Fri, 26 Oct 2018 16:58:13 +0000 (+0000) Subject: libgo: avoid use of 'local' directive in shell script X-Git-Tag: basepoints/gcc-10~3487 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd93b9dbb64ba642ce82b658030fb0db4aad666;p=thirdparty%2Fgcc.git libgo: avoid use of 'local' directive in shell script Avoid declaring shell variables with 'local' (not supported on all systems of interest). Reviewed-on: https://go-review.googlesource.com/c/145021 From-SVN: r265534 --- diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index ef6ce579423b..f56ac802ad08 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -ad50884d2a4b653f7f20edc8b441fe6ad6570d55 +9785e5c4e868ba55efdb33fc51872b4821770167 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index 0b2e572a9056..a82386aab3a7 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -513,9 +513,7 @@ localname() { # Returned: leaf.Mumble # symtogo() { - local s="" - local result="" - local ndots="" + result="" for tp in $* do s=$(echo "$tp" | sed -e 's/\.\.z2f/%/g' | sed -e 's/.*%//')