[cairo] ../doltlibtool: line 11: syntax error near unexpected token `"$arg"'

Ryan Schmidt cairo-2008c at ryandesign.com
Mon Nov 10 14:45:54 PST 2008


On Nov 10, 2008, at 08:40, Behdad Esfahbod wrote:

> I think I fixed this in master and 1.8 branch already.  Here's the  
> patch:
>
> -        *) args+=("$arg")
> +        *) args[${#args[@]}]="$arg" ;;
>
>
> Can you whether this fixes the build with bash 2?

That's almost exactly what I ended up using:

*) args[${#args[*]}]="$arg"

So I used [*] instead of [@] (just because that's what the first  
Google result I found on appending to an array showed me; I think  
they're equivalent for finding the length of an array), and I didn't  
think to add the ;; to the end.



More information about the cairo mailing list