]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
all: update gnulib submodule to latest
authorPádraig Brady <P@draigBrady.com>
Sat, 5 Nov 2016 17:14:41 +0000 (17:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 7 Nov 2016 13:17:19 +0000 (13:17 +0000)
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.

bootstrap
gnulib
tests/init.sh

index f060bab83e3e6e41348bee0fde26672cc0987ed7..1755d04ebbc9c31b10d8ea4b8a7e059dcbd91d9d 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2016-01-24.06; # UTC
+scriptversion=2016-11-03.18; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -418,13 +418,8 @@ sort_ver() { # sort -V is not generally available
   done
 }
 
-get_version() {
-  app=$1
-
-  $app --version >/dev/null 2>&1 || { $app --version; return 1; }
-
-  $app --version 2>&1 |
-  sed -n '# Move version to start of line.
+get_version_sed='
+# Move version to start of line.
           s/.*[v ]\([0-9]\)/\1/
 
           # Skip lines that do not start with version.
@@ -440,6 +435,13 @@ get_version() {
           s/\.0*\([1-9]\)/.\1/g
           p
           q'
+
+get_version() {
+  app=$1
+
+  $app --version >/dev/null 2>&1 || { $app --version; return 1; }
+
+  $app --version 2>&1 | sed -n "$get_version_sed"
 }
 
 check_versions() {
diff --git a/gnulib b/gnulib
index 7dad5f25591de682c452c3fc39ffe2fa11e21491..012262350494958b70da16b43ed9acf24ee7fbc1 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 7dad5f25591de682c452c3fc39ffe2fa11e21491
+Subproject commit 012262350494958b70da16b43ed9acf24ee7fbc1
index 97e4e4ba5e691ab04b376497cdddeabcf2cfa461..09b07394f9e90422f04e0d803cc651aef65d4748 100755 (executable)
@@ -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