Dave, in this part of the path_addcomp() code

        for(pp=first; pp; pp=pp->next)
        {
                if(len <= strlen(pp->name) && memcmp(name,pp->name,len)==0 && 
(pp->name[len]==':' || pp->name[len]==0))
                {
                        pp->flags |= flag;
                        return(first);
                }
        }

why is there a check for ':' ? optimization because it may be part of $PATH 
from the env?

is (pp->name[pp->len] == 0 || pp->name[pp->len] == ':') always true?
if so then would this work:

        for(pp=first; pp; pp=pp->next)
                if(len == pp->len && memcmp(name,pp->name,len)==0)
                {
                        pp->flags |= flag;
                        return(first);
                }

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to