autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 17-fyi-fix-lineno.patch


From: Akim Demaille
Subject: Re: 17-fyi-fix-lineno.patch
Date: 05 Oct 2001 19:56:40 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

| Hi,
| Akim Demaille <address@hidden> writes:
| 
| >    case $[0] in
| > -    *[[\\/]]* | ?:[[\\/]]* ) as_myself=$[0] ;;
| > +    [[\\/]]* | ?:[[\\/]]* ) as_myself=$[0] ;;
| >      *) _AS_PATH_WALK([],
| >                     [test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] && 
break])
| >         ;;
| >    esac
| 
| I think this is wrong.  We should walk the path only if the script was
| invoked as a bareword.  If it was invoked as '../src/configure', $PATH
| should not be searched.  The original glob was right. 

:(  Thanks for being so patient and nice with me, my brains don't
deserve some much attention.  I should get some sleep or go back to
BASIC.

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
        iff we are a bareword.
        Reported by Raja R Harinath.

Index: lib/m4sugar/m4sh.m4
===================================================================
RCS file: /cvs/autoconf/lib/m4sugar/m4sh.m4,v
retrieving revision 1.56
diff -u -u -r1.56 m4sh.m4
--- lib/m4sugar/m4sh.m4 2001/10/05 16:12:22 1.56
+++ lib/m4sugar/m4sh.m4 2001/10/05 17:42:58
@@ -426,9 +426,10 @@
 if test "x$as_lineno_1"  = "x$as_lineno_2" ||
    test "x$as_lineno_3" != "x$as_lineno_2";
   then
-  # Find who we are.
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
   case $[0] in
-    [[\\/]]* | ?:[[\\/]]* ) as_myself=$[0] ;;
+    *[[\\/]]* ) as_myself=$[0] ;;
     *) _AS_PATH_WALK([],
                    [test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] && break])
        ;;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]