help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mapfile -C issue


From: alex xmb ratchev
Subject: mapfile -C issue
Date: Sun, 18 Jun 2023 02:52:48 +0200

there is missing arguments in called C ()

~ $ C() { declare i= ; while (( ++i <= $# )) ; do echo $i ${!i} ; done ; }
; mapfile -d '' -C C -c 3 < <( printf %s\\0 11 22 33 44 55 66 )
1 2
2 33
1 5
2 66
~ $

is such a bug

i expected
1 11
2 22
3 33
1 44
2 55
3 66

or the same with 0 as beginning instead of 1

.. i thought i can bind data to -c count blocks

.. so , logically my script ings fail , somewhere ..

.. greets ..


reply via email to

[Prev in Thread] Current Thread [Next in Thread]