Hi,

not tryed, but could you try this :

function copy_arrays {
# copy_arrays dest src...
#
#  Copies any number of source arrays into the destination.

    nameref newarr=$1
    integer i index=0
    shift
    for arg
    do
        nameref arr=$arg
        for (( i=0; i < ${#arr[@]}; i ++ ))
        do
                newarr[$index]=${arr[$i]}
                (( index ++ ))
        done
    done
}

Regards,

Cyrille Lefevre
--
mailto:[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to