[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does mapfile support a multibyte character for its delimiter option?
From: |
Lawrence Velázquez |
Subject: |
Re: Does mapfile support a multibyte character for its delimiter option? |
Date: |
Wed, 07 Jul 2021 14:13:29 -0400 |
User-agent: |
Cyrus-JMAP/3.5.0-alpha0-531-g1160beca77-fm-20210705.001-g1160beca |
On Tue, Jul 6, 2021, at 10:49 PM, Robin A. Meade wrote:
> Consider:
>
> $ mapfile -d ¥ -t a < <(echo -n 1¥2¥3¥)
>
> $ declare -p a
> declare -a a=([0]=$'1\302' [1]=$'\2452\302' [2]=$'\2453\302' [3]=$'\245')
>
>
> I expected:
>
> $ declare -p a
> declare -a a=([0]="1" [1]="2" [2]="3")
https://git.savannah.gnu.org/cgit/bash.git/tree/builtins/mapfile.def?id=ce23728#n147
--
vq