csh question

Samuel N Kamens kamens at Neon.Stanford.EDU
Mon Nov 13 12:44:12 AEST 1989



Hi all!

I am trying to write a csh shell that looks like this (with names changed to
protect the innocent)


if ($1 == foo) then
 /usr/ucb/talk foo at bar
else
 /usr/ucb/talk $1
endif

When I run it, I get an error (error: end of file unexpected).

It's probably something really silly, but could someone tell me why this 
is wrong?

Thanks,

Sam Kamens		     |  "How do you know she is a witch?"
kamens at neon.stanford.edu     |  "She looks like one!!"
-- 
Sam Kamens		     |  "How do you know she is a witch?"



More information about the Comp.unix.questions mailing list