[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 ..
- mapfile -C issue,
alex xmb ratchev <=
- Re: mapfile -C issue, alex xmb ratchev, 2023/06/17
- Re: mapfile -C issue, Emanuele Torre, 2023/06/17
- Re: mapfile -C issue, alex xmb ratchev, 2023/06/18
- Re: mapfile -C issue, Chet Ramey, 2023/06/19
- Re: mapfile -C issue, alex xmb ratchev, 2023/06/19
- Re: mapfile -C issue, Emanuele Torre, 2023/06/19
- Re: mapfile -C issue, alex xmb ratchev, 2023/06/19
Re: mapfile -C issue, Greg Wooledge, 2023/06/17