Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!ogicse!qiclab!onion!jeff From: jeff@onion.rain.com (Jeff Beadles) Newsgroups: comp.unix.questions Subject: Re: Bourne shell syntax problem? Keywords: bourne shell arguments stupidity Message-ID: <1991Apr21.003201.18758@onion.rain.com> Date: 21 Apr 91 00:32:01 GMT Article-I.D.: onion.1991Apr21.003201.18758 References: <4973@dftsrv.gsfc.nasa.gov> Distribution: usa Lines: 24 In croten@ltpsun.gsfc.nasa.gov (Charles D. Roten) writes: > I am having trouble getting a Bourne shell to run, and have come to >suspect that the problem is in the section where I parse the variables. >The script is rather long (~260 lines) so I will only include the suspect >portion. > ... > *) if test "$data" = ""; then > data=$i > elif test "$normal = ""; then ^^^ The problem is that you are missing a quote. This is probably one of the harder-to-find bugs with a shell script. Have fun! -Jeff -- Jeff Beadles jeff@onion.rain.com