httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@devsys.jaguNET.com>
Subject Re: cvs commit: apache-1.3/src/helpers getuid.sh
Date Thu, 22 Apr 1999 11:31:52 GMT
Ralf S. Engelschall wrote:
> 
> 
> In article <199904221119.HAA11725@devsys.jaguNET.com> you wrote:
> > Ralf S. Engelschall wrote:
> >> 
> >> Thanks for your efforts, Jim. 
> >> I've just a few remaining questions:
> >> 
> >> >   if AP_IDPATH=`./src/helpers/PrintPath id` ; then
> >> 
> >> Are you sure a construct "if var=val; then" really works on all Bourne shell
> >> flavors? We've never used such a construct AFAIK, so I personally would write
> >> it as:
> > 
> > Yep. It works. 
> > whatever. Please feel free to adjust until you're happy with it and
> > it's how you want it.
> 
> When you say it works, I believe in you.
> 

Still, being conservative is good. Although assignments don't generate
return codes, some shells might clear them. So

	if `./src/helpers/PrintPath -s id` ; then
	    AP_IDPATH=`./src/helpers/PrintPath id`

might be the safer, if an uglier, solution :)

-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message