🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1213

IF syntax

#1213
From: Jon Deutsch
Date: Wed, 14 Nov 1990 17:12
26 lines
987 bytes
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
Technical Details
Message-ID: <15796@brahms.udel.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!brahms.udel.edu!jon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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