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
Configuration Information :
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -D$
uname output: Linux ubuntu 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5
17:45:18 UTC 2012 i6$
Machine Type: i686-pc-linux-gnu
Bash Versi