autoconf
[Top][All Lists]
Advanced

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

Re: configure script question ?


From: June Fang
Subject: Re: configure script question ?
Date: Fri, 10 Mar 2006 11:07:14 +0800

thanks you all.

On 3/5/06, Andreas Schwab <address@hidden> wrote:
> "June Fang" <address@hidden> writes:
>
> > i know ${ZSH_VERSION} means variable substituting;
> > and ${ZSH_VERSION:+set} means "If parameter is null or unset, nothing
> >                                        ~~ Note the `:`
> > is substituted, otherwise the expansion of word is substituted."
> >     ---- from Bash reference manual
> >
> > but what dose ${ZSH_VERSION+set} without the `:` means ?
>
> See the Bash menual (same section):
>
>    When not performing substring expansion, Bash tests for a parameter
> that is unset or null; omitting the colon results in a test only for a
> parameter that is unset.  Put another way, if the colon is included,
> the operator tests for both existence and that the value is not null;
> if the colon is omitted, the operator tests only for existence.
>
> Andreas.
>
> --
> Andreas Schwab, SuSE Labs, address@hidden
> SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
> PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>




reply via email to

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