summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-12-17 06:50:00 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-12-17 15:53:07 -0800
commitb4306429d4709d2ac482e6947d2f80054bbf1e74 (patch)
treeb5fab3e5fa9c651dc4cb76eb1141975e6bb7578a /configure
parent169c03e5ba18ed980683f38ca9d8451987cc0610 (diff)
downloadtxr-b4306429d4709d2ac482e6947d2f80054bbf1e74.tar.gz
txr-b4306429d4709d2ac482e6947d2f80054bbf1e74.tar.bz2
txr-b4306429d4709d2ac482e6947d2f80054bbf1e74.zip
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 10 insertions, 3 deletions
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 "