diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-08-13 02:52:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-08-13 02:52:42 +0000 |
commit | 82b709f9c4c9b21761a44a08db43524efa40dcd5 (patch) | |
tree | a118a34eac633019a2a846e4a96f36a50422344d /libgo/testsuite | |
parent | 237673d0520f0265983e6e42a6b0c1f5e63dd3bc (diff) | |
download | gcc-82b709f9c4c9b21761a44a08db43524efa40dcd5.zip gcc-82b709f9c4c9b21761a44a08db43524efa40dcd5.tar.gz gcc-82b709f9c4c9b21761a44a08db43524efa40dcd5.tar.bz2 |
libgo: don't unset in shell script
Reportedly ksh fails to unset a variable that was not previously set.
Change match.sh and gotest to not unset LANG, but instead set LANG=C.
Also don't combine exporting and setting variable in a single statement.
Reviewed-on: https://go-review.googlesource.com/26999
From-SVN: r239443
Diffstat (limited to 'libgo/testsuite')
-rwxr-xr-x | libgo/testsuite/gotest | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index 5fc888b..980e948 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -10,9 +10,10 @@ # Makes egrep,grep work better in general if we put them # in ordinary C mode instead of what the current language is. -unset LANG -export LC_ALL=C -export LC_CTYPE=C +LANG=C +LC_ALL=C +LC_CTYPE=C +export LANG LC_ALL LC_CTYPE GC=${GC:-gccgo} GL=${GL:-${GC-gccgo}} |