From 3a33f87ffb921ba469a0c25d22e6b225be38d084 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 10 Jan 2020 15:28:20 +0000 Subject: gotest: don't use local It's not part of the POSIX shell standard. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214300 From-SVN: r280118 --- libgo/testsuite/gotest | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libgo') diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index 4293db92664..6929de34ba0 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -538,8 +538,7 @@ symtogo() { # Takes an example name and puts any output into the file example.txt. # It strips comment markers but does not otherwise change the output. exampleoutput() { - local n=$(testname $1) - local f + n=$(testname $1) for f in $gofiles $xgofiles; do if ! grep "^func $n(" $f >/dev/null 2>&1; then continue -- cgit v1.2.3