Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!pacbell.com!pacbell!ptsfa!dmt From: dmt@PacBell.COM (Dave Turner) Newsgroups: comp.unix.questions Subject: Re: If $1 = "" I get an error, Help:-) Message-ID: <5434@ptsfa.PacBell.COM> Date: 8 Oct 90 04:47:39 GMT References: <311@alix.UUCP> <2919@canisius.UUCP> Reply-To: dmt@PacBell.COM (Dave Turner) Distribution: usa Organization: Pacific * Bell, San Ramon, CA Lines: 14 In article <2919@canisius.UUCP> pavlov@canisius.UUCP (Greg Pavlov) writes: >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. Enclose the $1 in "s: L if [ "$1" = "" ] Without the quotes test sees just an equal sign and the "" -- Dave Turner 415/823-2001 {att,bellcore,sun,ames,decwrl}!pacbell!dmt