Path: utzoo!attcan!uunet!ksr!harsha From: harsha@ksr.com (Paul Harsha) Newsgroups: comp.unix.programmer Subject: Re: IF syntax Message-ID: <965@ksr.com> Date: 14 Nov 90 18:39:40 GMT References: <15796@brahms.udel.edu> Sender: news@ksr.com Lines: 26 jon@brahms.udel.edu (Jon Deutsch) writes: >#!/bin/sh >if [$temp != ''] then > echo 'remote-caller' >> .people; >else > echo 'inside-caller' >> .people; >fi >I keep getting an ELSE UNEXPECTED. You need to put the "then" on a seperate line #!/bin/sh if [$temp != ''] then echo 'remote-caller' >> .people; else echo 'inside-caller' >> .people; fi works just fine. -Paul