Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!aplcen!haven!umbc3!math13.math.umbc.edu!rouben From: rouben@math13.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.unix.questions Subject: Re: If $1 = "" I get an error, Help:-) Message-ID: <4053@umbc3.UMBC.EDU> Date: 1 Oct 90 22:07:44 GMT References: <311@alix.UUCP> Sender: newspost@umbc3.UMBC.EDU Reply-To: rouben@math13.math.umbc.edu.UUCP (Rouben Rostamian) Distribution: usa Organization: Mathematics Department University of Maryland, Baltimore County Lines: 16 In article <311@alix.UUCP> isolated@alix.UUCP (20 James D. Corder) writes: > >I have a sh program that wants input at the command line. >However, I need an error out if the unser does not input at the command line. >ie: > >if [ ${1} = "" ] >then > echo "Please enter your option now." > ...etc... Replace the first line with: if [ "${1}" = "" ] --