diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-26 16:58:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-26 16:58:13 +0000 |
commit | dbd93b9dbb64ba642ce82b658030fb0db4aad666 (patch) | |
tree | 6f84007d49ecd45dd9d6f670be52dc032a686f08 /libgo | |
parent | 797ea25427efeb91e73dc2e3e8c55f17de07c005 (diff) | |
download | gcc-dbd93b9dbb64ba642ce82b658030fb0db4aad666.zip gcc-dbd93b9dbb64ba642ce82b658030fb0db4aad666.tar.gz gcc-dbd93b9dbb64ba642ce82b658030fb0db4aad666.tar.bz2 |
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
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/testsuite/gotest | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index 0b2e572..a82386a 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/.*%//') |