#!/bin/bashLINE=foo,bar,,bazIFS=, array=($LINE)printf '>>%s<<\n' "${array[@]}"
Standard input is empty
>>foo<< >>bar<< >><< >>baz<<
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!