]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix IRIX testsuite debugging failures: $0 in functions.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 19 Nov 2007 20:24:54 +0000 (21:24 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 19 Nov 2007 20:24:54 +0000 (21:24 +0100)
* lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
Do not use $0 inside a function, as IRIX sh will set that to the
function name rather than the script invocation name.

ChangeLog
lib/autotest/general.m4

index 409ee36b9d1db45ba3defdcff6ae2a23376ded81..aaee5813c1faa8c45cc17b55ea3ccebe22910a0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2007-11-18  Paolo Bonzini  <bonzini@gnu.org>
+2007-11-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix IRIX testsuite debugging failures: $0 in functions.
+       * lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
+       Do not use $0 inside a function, as IRIX sh will set that to the
+       function name rather than the script invocation name.
+
+2007-11-19  Paolo Bonzini  <bonzini@gnu.org>
        and Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/autotest/general.m4 (at_func_test): Use cached line numbers
index 53b0060744bf2143554df96e66c4268c88abb781..08f6e6333f81b6d01ef83236159c1cc643aacccb 100644 (file)
@@ -331,7 +331,7 @@ at_func_create_debugging_script ()
     echo 'test "${ZSH_VERSION+set}" = set dnl
 && alias -g '\''${1+"$[@]"}'\''='\''"$[@]"'\'''
     AS_ECHO(["cd '$at_dir'"])
-    AS_ECHO(["exec \${CONFIG_SHELL-$SHELL} $[0] -v -d ]dnl
+    AS_ECHO(["exec \${CONFIG_SHELL-$SHELL} $at_myself -v -d ]dnl
 [$at_debug_args $at_group \${1+\"\$[@]\"}"])
     echo 'exit 1'
   } >$at_group_dir/run