Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!cbnewsl!urban From: urban@cbnewsl.att.com (john.urban) Newsgroups: comp.unix.questions Subject: Re: Bourne shell syntax problem? Keywords: bourne shell arguments stupidity Message-ID: <1991Apr19.150239.27055@cbnewsl.att.com> Date: 19 Apr 91 15:02:39 GMT References: <4973@dftsrv.gsfc.nasa.gov> Distribution: usa Organization: AT&T Bell Laboratories Lines: 32 In article <4973@dftsrv.gsfc.nasa.gov> 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. > You're missing the closing " for the test "$normal >-------------------- script follows -------------------- >#!/bin/sh > > [comments deleted] > > *) if test "$data" = ""; then > data=$i > elif test "$normal = ""; then ^^^^ missing closing " around normal. > normal=$i > elif test "$maildest" = ""; then > maildest=$i > else break > fi > esac >done Sincerely, John Ben Urban