csh pleasures
Paul Dow CRI-UK
paul at sequoia.cray.com
Fri Feb 8 06:59:20 AEST 1991
|> Anybody care defending?
|>
|> #!/bin/csh -f
|> set a=0
|> set b=1
|> if($a) then
|> if($b) then
|> echo one
|> else
|> echo two
|> endif
|> else
|> echo three
|> endif
|>
I'd like to know the background to this myself. Over the years, slight differences between shells have caused me many headaches.
The above script will work "as expected" if a space is inserted between the
i and the "("s. Some versions of csh will gripe if no space is provided.
Paul Dow.
More information about the Comp.unix.wizards
mailing list