Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!sundc!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: comp.unix.wizards Subject: Re: Expressions in csh IF commands Message-ID: <453@hadron.UUCP> Date: Thu, 5-Feb-87 22:18:40 EST Article-I.D.: hadron.453 Posted: Thu Feb 5 22:18:40 1987 Date-Received: Sat, 7-Feb-87 20:54:47 EST References: <15@aber-cs.UUCP> <801@cartan.Berkeley.EDU> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Distribution: comp Organization: Hadron, Inc., Fairfax, VA Lines: 18 Summary: The Real Answer In article <801@cartan.Berkeley.EDU> ballou@brahms.Berkeley.EDU (Kenneth R. Ballou) writes: >In article <15@aber-cs.UUCP> dap@aber-cs.UUCP (Dave Price) writes: >>Can someone please tell me what is wrong with the following >> if ( \{ /bin/true \} ) echo "hello" >The correct syntax is > if { /bin/true } echo "hello" >The parentheses are unnecessary. Ken is, of course, correct, albeit nonresponsive. The answer to the question is that the {}'s should not be quoted. The ()'s may be in or not at your option. You'll need them if you add any and'ed or or'ed expressions. -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP} jsdy@hadron.COM (not yet domainised)