aboutsummaryrefslogtreecommitdiffstats
path: root/tests/init.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2020-01-01 14:16:56 +0000
committerPádraig Brady <P@draigBrady.com>2020-01-01 14:16:56 +0000
commitaaba82431ceca97441d56152d8c7ec2d84fa1d12 (patch)
tree30eddf3061f03e0fb2155a652ba1f4f96ca0d1d5 /tests/init.sh
parentdoc: add example to demonstrate sub-second sleep times (diff)
downloadcoreutils-aaba82431ceca97441d56152d8c7ec2d84fa1d12.tar.gz
coreutils-aaba82431ceca97441d56152d8c7ec2d84fa1d12.zip
maint: update all copyright year number ranges
Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * tests/sample-test: Adjust to use the single most recent year.
Diffstat (limited to 'tests/init.sh')
-rwxr-xr-xtests/init.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/init.sh b/tests/init.sh
index 8ca5c9055..b4a5944a7 100755
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -1,6 +1,6 @@
# source this file; set up for tests
-# Copyright (C) 2009-2019 Free Software Foundation, Inc.
+# Copyright (C) 2009-2020 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -129,6 +129,8 @@ else
fi
# We require $(...) support unconditionally.
+# We require that the printf built-in work correctly regarding octal escapes;
+# this eliminates /bin/sh on AIX 7.2.
# We require non-surprising "local" semantics (this eliminates dash).
# This takes the admittedly draconian step of eliminating dash, because the
# assignment tab=$(printf '\t') works fine, yet preceding it with "local "
@@ -158,6 +160,12 @@ fi
# ? - not ok
gl_shell_test_script_='
test $(echo y) = y || exit 1
+LC_ALL=en_US.UTF-8 printf "\\351" 2>/dev/null \
+ | LC_ALL=C tr "\\351" x | LC_ALL=C grep "^x$" > /dev/null \
+ || exit 1
+printf "\\351" 2>/dev/null \
+ | LC_ALL=C tr "\\351" x | LC_ALL=C grep "^x$" > /dev/null \
+ || exit 1
f_local_() { local v=1; }; f_local_ || exit 1
f_dash_local_fail_() { local t=$(printf " 1"); }; f_dash_local_fail_
score_=10