Re: how do i..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux