how do i..

Richard E Miles r.godzilla at comcast.net
Mon Aug 23 22:54:12 UTC 2004


> following is bit of code that i am having trouble with
> 
> 
>  do
>     processfile "$lnopts" "$filename" 
>     result=$?
> 
>     if [ $result -ne 0 -a "$cont" != 'Y' ]
>     then
> 
>       echo -n "Error occurred.  Continue (y/n/a)?"
>       read cont
> 
>       test "$cont" = 'n' -o "$cont" = 'N' && exit 1
>       [ "$cont" = 'a' || "$cont" = 'A' ] && cont='Y'
>     fi
>   done
> 
> the error i get is 
> 
> ./parta.assesment: line 122: syntax error near
> unexpected token `('
> ./parta.assesment: line 122: `      echo -n "Error
> occurred.  Continue (y/n/a)? "'
> 
> and i cant figure out what is wrong with that echo
> statement????
> 
> 
> =====
> 
Although it doesn't show on the statement line you have backtic marks arround the statement. Remove them and you should be allright.
-- 
Richard E Miles
Federal Way WA.
registered linux user 46097





More information about the fedora-list mailing list