Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!brahms.udel.edu!jon From: jon@brahms.udel.edu (Jon Deutsch) Newsgroups: comp.unix.programmer Subject: IF syntax Message-ID: <15796@brahms.udel.edu> Date: 14 Nov 90 17:12:45 GMT Organization: University of Delaware - Smith Consulting Lines: 26 OK, second try at the question: I'm using sh to impliment an IF statement. Can't get it to work. Here's the code: #!/bin/sh if [$temp != ''] then echo 'remote-caller' >> .people; else echo 'inside-caller' >> .people; fi I keep getting an ELSE UNEXPECTED. So, I tried an ELIF, but no go. Any answers? (as you can see, I'm new to sh!) thanx X-------------------+--------------+-----------------------X | | |\ |>jon@brahms.udel.edu<| "For my 2 cents, | | \|on |/eutsch |>>-----------------<<| I'd pay a dollar" | X------+--------------------+--------------------+---------X