From b4306429d4709d2ac482e6947d2f80054bbf1e74 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 17 Dec 2015 06:50:00 -0800 Subject: Comments clean up near top of configure script. * configure: comment about saving command line needs to be below the re-execution trick. Comment added for re-execution trick. --- configure | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 49a7b6b2..9822044e 100755 --- a/configure +++ b/configure @@ -26,9 +26,10 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Save command line in a way that can be re-run. -# This takes care of spaces, but if there are shell-meta characters -# in the arguments, oops. +# The #!/bin/sh might be some legacy piece of crap, +# not even up to 1990 POSIX.2 spec. So the first step +# is to look for a better shell in some known places +# and re-execute ourselves with that interpreter. # if test x$txr_shell = x ; then @@ -48,6 +49,12 @@ fi set -u +# +# Save command line in a way that can be re-run. +# This takes care of spaces, but if there are shell-meta characters +# in the arguments, oops. +# + cmdline= for arg in "$0" ${@+"$@"} ; do [ -n "$cmdline" ] && cmdline="$cmdline " -- cgit v1.2.3