summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-11-05 17:14:41 +0000
committerPádraig Brady <P@draigBrady.com>2016-11-07 13:17:19 +0000
commit7ba9355d0aec01a005164b02f7bdc8e67c430315 (patch)
tree298828eb93d7f3fb44aed6bbd0166ad66e5647d0 /tests
parent5161effd835167c113037aaec2e874d76f566c2c (diff)
downloadcoreutils-7ba9355d0aec01a005164b02f7bdc8e67c430315.tar.xz
all: update gnulib submodule to latest
Incorporating these coreutils specific changes: backupfile: initialize default suffix within the implementation strftime,strptime: support %q to represent the quarter Also sync these copies with gnulib: * bootstrap: Now supports AIX. * gnulib: Update to the latest. * tests/init.sh: dash(1) is now disabled.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/init.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh
index 97e4e4ba5..09b07394f 100755
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -128,6 +128,13 @@ else
fi
# We require $(...) support unconditionally.
+# 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 "
+# transforms it into an assignment that sets the variable to the empty string.
+# That is too counter-intuitive, and can lead to subtle run-time malfunction.
+# The example below is less subtle in that with dash, it evokes the run-time
+# exception "dash: 1: local: 1: bad variable name".
# We require a few additional shell features only when $EXEEXT is nonempty,
# in order to support automatic $EXEEXT emulation:
# - hyphen-containing alias names
@@ -151,6 +158,7 @@ fi
gl_shell_test_script_='
test $(echo y) = y || 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
if test "$VERBOSE" = yes; then
test -n "$( (exec 3>&1; set -x; P=1 true 2>&3) 2> /dev/null)" && score_=9