Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (Jim Burns) Newsgroups: comp.unix.questions Subject: Re: If $1 = "" I get an error, Help:-) Message-ID: <14411@hydra.gatech.EDU> Date: 2 Oct 90 16:35:54 GMT References: <4053@umbc3.UMBC.EDU> Distribution: usa Organization: Georgia Institute of Technology Lines: 17 in article <4053@umbc3.UMBC.EDU>, rouben@math13.math.umbc.edu (Rouben Rostamian) says: > In article <311@alix.UUCP> isolated@alix.UUCP (20 James D. Corder) writes: > >if [ ${1} = "" ] > Replace the first line with: > if [ "${1}" = "" ] Also beware of sh/ksh's '-u' (treat unset variables as an error). Use 'set +u' if necessary. -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu