diff gnulib-tool @ 19271:6d9b9b82d0af

Port recent gnulib-tool change to Dash * gnulib-tool (func_create_testdir): Don't assume that the shell retokenizes after expanding "$@" inside the call to func_execute_command. Dash 0.5.8-2.1ubuntu2 does not.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 29 Oct 2017 15:46:10 -0700
parents 91adfa2ad3ed
children 8bfc20b57265
line wrap: on
line diff
--- a/gnulib-tool	Fri Oct 27 21:28:47 2017 -0700
+++ b/gnulib-tool	Sun Oct 29 15:46:10 2017 -0700
@@ -6478,7 +6478,9 @@
    fi
    func_execute_command ${AUTOCONF} || func_exit 1
    # Explicit 'touch config.h.in': see <https://savannah.gnu.org/support/index.php?109406>.
-   func_execute_command "${AUTOHEADER} && touch config.h.in" || func_exit 1
+   func_execute_command ${AUTOHEADER} &&
+       func_execute_command touch config.h.in ||
+           func_exit 1
    func_execute_command ${AUTOMAKE} --add-missing --copy || func_exit 1
    rm -rf autom4te.cache
   ) || func_exit 1
@@ -6501,7 +6503,9 @@
      fi
      func_execute_command ${AUTOCONF} || func_exit 1
      # Explicit 'touch config.h.in': see <https://savannah.gnu.org/support/index.php?109406>.
-     func_execute_command "${AUTOHEADER} && touch config.h.in" || func_exit 1
+     func_execute_command ${AUTOHEADER} &&
+         func_execute_command touch config.h.in ||
+             func_exit 1
      func_execute_command ${AUTOMAKE} --add-missing --copy || func_exit 1
      rm -rf autom4te.cache
     ) || func_exit 1