Ionutz Borcoman <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED]
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