Re: BashPitfall 65, read reading past the delimiter on records ending in truncated characters

2025-04-21 Thread Chet Ramey
On 4/20/25 6:58 PM, Greg Wooledge wrote: That one may be fixed, but: bash-5.3$ printf 'FOO\0\315\0\226\0' | while IFS= read -rd '' f; do printf '<%q>\n' "$f"; done <$'\315'> <''> <''> The context for all of this was someone in IRC who was reading a chunk of data from /dev/urandom and got dif

Re: BashPitfall 65, read reading past the delimiter on records ending in truncated characters

2025-04-21 Thread Chet Ramey
On 4/21/25 2:48 AM, Stephane Chazelas wrote: 2025-04-20 17:31:56 -0400, Chet Ramey: [...] This has been fixed since last July, and the fix is in bash-5.3. [...] Thanks, though as Greg says, there seems to be a few more related issues still affecting 5.3. I repost a message sent privately below

Re: Bash shell uses wrong language

2025-04-21 Thread Ángel
On 2025-04-14 at 10:59 -0400, Greg Wooledge wrote: > Are bilingual but primarily-English-speaking end users expected to put > "en@quot" as their preferred language in the LANGUAGE variable, in order > to get messages in English? > > Would creating an empty /usr/share/locale/en/LC_MESSAGES/bash.mo