On 8/29/13 12:42 PM, DJ Mills wrote:
> When using a non-default IFS (a default IFS would trim them), a single
> empty trailing field is ignored for read -a.
>
> IFS=: read -rd '' -a arr < <(printf %s ':foo:bar:'); printf '<%s> '
> "${arr[@]}"; echo
> <>
>
> I would expect the output to be:
> <>
On 8/31/13 3:13 PM, Stephane Chazelas wrote:
> Bash Version: 4.2
> Patch Level: 45
> Release Status: release
>
> When called with the -N option, "read" seems to consider the byte 0xFF
> as meaning EOF (well, not exactly since it doesn't set the exit status to
> non-zero)
Not quite: it interprets