[gobolinux-devel] Code Documentation Project: String patch
Daniele Maccari
gobo.users at gmail.com
Mon Apr 14 19:37:43 NZST 2008
Daniele Maccari wrote:
> Omg, again, please note that in this part:
>
> [ $3 -lt 0 -a $(( $i+$3+1 )) -lt ${#tokens} ] && echo -n ${tokens[$(( $i+$3+1 ))]}
>
> of the Get_Token function, the control about $(( $i+$3+1 )) is still wrong, it should be greater than -1, if I'm not wrong on this too :D
> Thanks for your patience.
>
Ok, this is the last, I promise. It should be in between 0 and
{#tokens}, so the line should be:
[ $3 -lt 0 -a $(( $i+$3+1 )) -gt -1 -a $(( $i+$3+1 )) -lt ${#tokens} ] && echo -n ${tokens[$(( $i+$3+1 ))]}
do you agree?
More information about the gobolinux-devel
mailing list