Bourne shell syntax problem?

Barbara Nash barb at library.calpoly.edu
Sat Apr 20 12:03:44 AEST 1991


croten at ltpsun.gsfc.nasa.gov (Charles D. Roten) says.......
>
>    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.
>
>-------------------- script follows --------------------
>#!/bin/sh
>
> [comments deleted]
>
[lotsa stuff deleted for brevity's sake]
>
># Now, parse the rest of the arguments, for cases where there are 1 or more
>#    arguments.
>
>for i in $*; do
>   case $i in
[lotsa case stuff deleted for more brevity]
>      *)    if test "$data" = ""; then
>               data=$i
>            elif test "$normal = ""; then
                       ^^^^^^^^^^^^^
                       You've only got three quotes here, you need another
                       after the "$normal.  This is prolly why you are getting
                       the unexpected EOF error.
>
>    I would greatly appreciate an explanation of the the nature of the 
>goof.  Thanks in advance.

Sure, no problem.  Forgetting a quote mark seems to be my favorite shell
proggin' error as well!  =-) =-)


Good luck,
Barb



-- 
--------------------------------------------------------------------------------
Barbara Nash, Asst. SysAdmin                       barb at library.calpoly.edu
Kennedy Library Computer Services                  bnash at polyslo.calpoly.edu
Disclaimer:  My opinions are my own, the library has enough without taking mine.



More information about the Comp.unix.questions mailing list