aboutsummaryrefslogtreecommitdiffstats
path: root/test/localenl.sh
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-05-12 10:36:35 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-05-12 10:36:35 +0300
commitda5841b37f85873a627e169d4ee93916f0372ba2 (patch)
tree3f04d8d893633230e2b69ed2c5c5ccf503a5dacc /test/localenl.sh
parentb6b20723f3ca34219ef202d8bb35a5cd8da928a9 (diff)
downloadegawk-da5841b37f85873a627e169d4ee93916f0372ba2.tar.gz
egawk-da5841b37f85873a627e169d4ee93916f0372ba2.tar.bz2
egawk-da5841b37f85873a627e169d4ee93916f0372ba2.zip
Fix test/localenl.sh for Bash 5.1.
Diffstat (limited to 'test/localenl.sh')
-rwxr-xr-xtest/localenl.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/localenl.sh b/test/localenl.sh
index ca3ee64e..d5d721ed 100755
--- a/test/localenl.sh
+++ b/test/localenl.sh
@@ -36,9 +36,9 @@
AWK=${AWK:-../gawk}
# April 2010: Remove UNKNOWN, causes spurious failures on some systems
-for LC_ALL in C POSIX en_US.ISO-8859-1 en_US.UTF-8 #UNKNOWN
+for LC in C POSIX en_US.ISO-8859-1 en_US.UTF-8 #UNKNOWN
do
-export LC_ALL
+export LC_ALL=$LC 2>/dev/null
cat <<EOF |
line1
line2