What is the simplest way to split a csv string into an array using only builtins that works for both bash & zsh?
I have separate code that works for bash and for zsh, but I haven't yet found anything that works for both:
csv='a,b,c'
# Works in zsh, but not in bash
array=(${(s:,:)csv})
# Works in bash, but not in zsh
array=(${csv//,/ }) # This requires that $IFS contains the space character