How do we remove from first till a certain string in array just like that of in plain string by ${..#..} e.g. ${s#abc}
$ s=(e u i o foo a)
$ t=(${s[@]#*foo})
$ echo "${t[@]}"
e u i o a
instead of expected:
a
How to correcly do it so solve such need ?