autoconf
[Top][All Lists]
Advanced

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

Re: what's the effect of test in ac_define_dir.m4


From: Andreas Schwab
Subject: Re: what's the effect of test in ac_define_dir.m4
Date: Mon, 24 Jun 2002 13:49:21 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux)

Ionutz Borcoman <address@hidden> writes:

|> Evrika :-)
|> 
|> Yes, you're right. But I've been for too long a C programmer (and never a
|> shell one). I've thought '&&' was for test command. Something like in:
|>    if ( xxx == TRUE && yyy == TRUE ) {};
|> 
|> So the C++ equivalent of this bash line:
|>    test xxx="xxx" && xxx="zzz"
|> is
|>    if( xxx == "xxx" ) { xxx  = "zzz"; }

No, the equivalent would be

    xxx == "xxx" && xxx = "zzz"

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
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]