|
From: | Robin A. Meade |
Subject: | Does mapfile support a multibyte character for its delimiter option? |
Date: | Tue, 6 Jul 2021 16:49:33 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
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")
[Prev in Thread] | Current Thread | [Next in Thread] |