Harlan Stenn <[EMAIL PROTECTED]>: > 2> I'm in the habit of writing it like this: test x"$foo" != x"" > And exactly why are you using both the quotes and the x? quotes because this fails: foo='hi there' test x$foo = xbar x because this fails: foo='!' test "$foo" = "bar" It's always safe to write string compares as: test x"$foo" = x"bar" and it's simpler to do so uniformly than to prove whether a particular $foo can only have safe values or not. --
- Re: config.cache considered harmful Ian Lance Taylor
- Re: config.cache considered harmful Paul Eggert
- Re: config.cache considered harmful Ian Lance Taylor
- Re: config.cache considered harmful Akim Demaille
- Re: config.cache considered harmful Ian Lance Taylor
- Portable programming (was: config.cache consider... Russ Allbery
- Re: config.cache considered harmful Martin Buchholz
- Re: config.cache considered harmful Didier Verna
- Re: config.cache considered harmful Felix Lee
- Re: config.cache considered harmful Harlan Stenn
- Re: config.cache considered harmful Felix Lee
- Re: config.cache considered harmful Akim Demaille
- Re: config.cache considered harmful Martin Buchholz
- Re: config.cache considered harmful Akim Demaille
- Re: config.cache considered harmful Martin Buchholz
- Re: config.cache considered harmful Alexandre Oliva
- Re: config.cache considered harmful Tom Tromey
- Re: config.cache considered harmful Martin Buchholz
- Re: config.cache considered harmful Akim Demaille
- Re: config.cache considered harmful Russ Allbery
- Re: config.cache considered harmful Tom Tromey