If $1 = "" I get an error, Help:-)

Jim Burns gt0178a at prism.gatech.EDU
Wed Oct 3 02:35:54 AEST 1990


in article <4053 at umbc3.UMBC.EDU>, rouben at math13.math.umbc.edu (Rouben Rostamian) says:

> In article <311 at alix.UUCP> isolated at 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 at prism.gatech.edu



More information about the Comp.unix.questions mailing list