autoconf
[Top][All Lists]
Advanced

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

Re: caching variables


From: Ralf Wildenhues
Subject: Re: caching variables
Date: Sat, 12 Sep 2009 07:02:31 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

* Eric Blake wrote on Sat, Sep 12, 2009 at 04:43:01AM CEST:
> According to Sam Steingold on 9/11/2009 2:54 PM:
> > however, this way I will be testing variables which have never been set.
> > is this OK?
> > (I understand that unless I set -u, shell will not barf, but I was
> > wondering if that was considered bad style in aitoconf).
> 
> Autoconf _expects_ to be run with set +u, and exploits uninitialized
> variables.

Even with set -u, the && should have short-circuit semantics, so you
shouldn't ever test any variable which hasn't been set before, if you
order the tests in the right way.

> It would be a _lot_ of work to support set -u.

Actually, I have used it from time to time for debugging purposes,
but more for the libtool script.

Cheers,
Ralf





reply via email to

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