libgo: don't unset in shell script
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 13 Aug 2016 02:52:42 +0000 (02:52 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 13 Aug 2016 02:52:42 +0000 (02:52 +0000)
    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

gcc/go/gofrontend/MERGE
libgo/match.sh
libgo/testsuite/gotest

index 00b5cccd80cbce2aa9e1d6b1d63f079e670e28e8..16beba1d84393403b54558b7ce7546819b22529f 100644 (file)
@@ -1,4 +1,4 @@
-d51890dc96a2a33484623728bdc8ac258645e9cc
+24e0c4c98e0614b1892316aca787f1c564f2d269
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index f626112642b8e047283ff1fca35b1b424ba53029..23db19478fa15f008464f6161ad1b9c4cf05881c 100755 (executable)
 
 set -e
 
-unset LANG
+LANG=C
 LC_ALL=C
 LC_CTYPE=C
-export LC_ALL LC_CTYPE
+export LANG LC_ALL LC_CTYPE
 
 srcdir=""
 goarch=""
index 5fc888bddecf561e9c589d6a5b0cc3a1b334737d..980e9483a6f589007abc508922bfaf0e99ac3fa3 100755 (executable)
 
 # 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}}