NetBSD-Users archive

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

Re: C Question



On Mon, Apr 1, 2013 at 12:30 PM, Maurizio Caloro <mauric%gmx.ch@localhost> 
wrote:
>
> Please whats going wrong
> regards Mauri
>
> ./configure[21126]: syntax error: `((' unexpected
> ./configure[21126]:
>
>    while read line; do
>         test -z "$line" && break;
>         plugin="    ${line%:*}:"
>         status=${line#*:}
>         let extracols=34-${#plugin}
>         echo -n "$plugin"
>         for (( i=0; $i<$extracols; i++ )); do
>                     echo -n ' '
>         done
>         echo $status
>     done << GPEOF
> $build_feature_statusmsg

That's not C, but a shell script snippet. Looks like you try to
execute a bash or ksh script with a POSIX shell (like /bin/sh). for ((
)) is an extension found in bash or ksh.


Home | Main Index | Thread Index | Old Index