URL: <https://savannah.gnu.org/bugs/?67410>
Summary: Bash read fails on UTF-8
Group: The GNU Bourne-Again SHell
Submitter: None
Submitted: Fr 08 Aug 2025 11:39:12 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fr 08 Aug 2025 11:39:12 UTC By: Anonymous
I used the following command in the bash of the docker image
"amd64/bash:devel" to reproduce the behaviour:
bash-5.3# IFS='\n' read -r detail < <(echo "schön") ; echo "${detail}"
schö
bash-5.3#
I'm expecting to see the whole word to be read but the last letter
disappeared. It seems to be related to the IFS (here newline).
However, other combinations work:
bash-5.3# IFS='\n' read -r detail < <(echo "schönwässerle") ; echo
"${detail}"
schönwässerle
bash-5.3#
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67410>
_______________________________________________
Nachricht gesendet über Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
