+------ Casper.Dik at sun.com wrote (Thu, 07-Jun-20,07 20:05 +0200): | | >On Thu, 07 Jun 2007 17:37:31 +0100 Alan Burlison wrote: | >> Glenn Fowler wrote: | > | >> >> [ x$install = xyes ] && ... | | That only works if install is one word or none.
Which is why [ "x${install:-}" = xyes ] && ... would be the actual practice, as implicitly suggested further down. The use of "${install:-no}" might be preferred in a case statement, unless something like ": ${install:=no}" had been used earlier. Chuck