Bourne shell syntax problem?

john.urban urban at cbnewsl.att.com
Sat Apr 20 01:02:39 AEST 1991


In article <4973 at dftsrv.gsfc.nasa.gov> croten at 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



More information about the Comp.unix.questions mailing list