httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: TestCompile, HP-UX and -r/-x
Date Sat, 11 Apr 1998 16:18:49 GMT
Jim Jagielski wrote:
> 
> Ben Laurie wrote:
> >
> >
> > Hmmm ... guess we need to set something different, like:
> >
> > PRINT_PATH=`pwd` ./PrintPath -s $TARGET
> >
> > and have PrintPath mess with PATH as appropriate. The snag being, of
> > course, that if $TARGET happens to be on the path somewhere it all goes
> > horribly wrong.
> >
> 
> What it does is set PATH to .:$PATH so that the current directory gets
> searched first. Also, PrintPath will print out the first path found.
> So, TestCompile checks to see if the returned value of PrintPath
> is the exact same as ./dummy or ./testfunc and then and only then
> return true. This seemed the safest solution.

Oh right. Silly me!

> I did toy with the idea of having a variable called SEARCHPATH
> (I know, ugly) which, if set, overruled the setting of PATH in
> PrintPath (ie: looked for the file in SEARCHPATH and not PATH)
> but that seemed a forced hack :/  However, that might be something
> that could be used elsewhere...

Well, if it ain't broke, don't fix it :-)

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|  Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author    http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message