Thank Greg for your answer very much.
This problem has confused me for 2 days. That seems I didn't read the
manpage carefully.
On 01/11/2013 10:54 PM, Greg Wooledge wrote:
On Fri, Jan 11, 2013 at 10:21:55PM +0800, Ma Shimiao wrote:
I used commands as follows:
$seq 5 | mapfile -C echo -c1
0 1
On Fri, Jan 11, 2013 at 10:21:55PM +0800, Ma Shimiao wrote:
> I used commands as follows:
> $seq 5 | mapfile -C echo -c1
> 0 1
>
> 1 2
>
> 2 3
>
> 3 4
>
> 4 5
>
> I would have expectd 1,2,3,4,5 above from the"help mapfile".
> Is it a bug of mapfile?
The help says:
When CALLBACK is evalu