diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-12-17 06:50:00 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-12-17 15:53:07 -0800 |
commit | b4306429d4709d2ac482e6947d2f80054bbf1e74 (patch) | |
tree | b5fab3e5fa9c651dc4cb76eb1141975e6bb7578a /configure | |
parent | 169c03e5ba18ed980683f38ca9d8451987cc0610 (diff) | |
download | txr-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-x | configure | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 " |