Re: Feature Request - Allow mapfile to handle NUL-delimited data

2011-05-19 Thread Maarten Billemont
On 13 May 2011, at 20:07, DJ Mills wrote: > A -0 option, or even an option to use a different field separator, would be > an > excellent feature for mapfile. Currently, of course, you can use: > > while IFS= read -rd '' file; do array+=("$file"); done > > mapfile is considerably faster, however

Feature Request - Allow mapfile to handle NUL-delimited data

2011-05-13 Thread DJ Mills
A -0 option, or even an option to use a different field separator, would be an excellent feature for mapfile. Currently, of course, you can use: while IFS= read -rd '' file; do array+=("$file"); done mapfile is considerably faster, however, and I think this would be quite handy.