The problem is to read variables with read command dynamically from a read command in bash without knowing how many they are in advance and store them into an array .
I tested with :
read -p "array : " array[{0..#}]
as
read -p "array : " array[{0..3}]
works
But with no success .