Re: [libgo, build] Avoid echo -n in gotest

2011-04-05 Thread Ian Lance Taylor
Andreas Schwab writes: > Rainer Orth writes: > >> diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest >> --- a/libgo/testsuite/gotest >> +++ b/libgo/testsuite/gotest >> @@ -231,7 +231,7 @@ mkdir _test >> >> case "x$gofiles" in >> x) >> -gofiles=$(echo -n $(ls *_test.go 2>/dev/nu

Re: [libgo, build] Avoid echo -n in gotest

2011-04-05 Thread Andreas Schwab
Rainer Orth writes: > diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest > --- a/libgo/testsuite/gotest > +++ b/libgo/testsuite/gotest > @@ -231,7 +231,7 @@ mkdir _test > > case "x$gofiles" in > x) > - gofiles=$(echo -n $(ls *_test.go 2>/dev/null)) > + gofiles=$(printf "%s"

[libgo, build] Avoid echo -n in gotest

2011-04-05 Thread Rainer Orth
Inspecting the Solaris 8 libgo.sum file, I was reminded that echo -n isn't portable. The autoconf manual agrees and suggests printf as a replacement. The following patch implements this. Bootstrapped on i386-pc-solaris2.8 with gas. Rainer 2011-04-05 Rainer Orth * testsuite