Re: Empty array referenced by indirection reports unbound variable

2022-02-06 Thread konsolebox
On Thu, Dec 30, 2021 at 4:35 PM Chet Ramey wrote: > Let's try it. Thanks for the report. It seems to be already fixed in 5.2-alpha (thanks), but I can't see it mentioned in the changelog. Can you kindly confirm if it really is? -- konsolebox

Re: Empty array referenced by indirection reports unbound variable

2022-02-06 Thread Chet Ramey
On 2/6/22 4:23 AM, konsolebox wrote: On Thu, Dec 30, 2021 at 4:35 PM Chet Ramey wrote: Let's try it. Thanks for the report. It seems to be already fixed in 5.2-alpha (thanks), but I can't see it mentioned in the changelog. Can you kindly confirm if it really is? From CHANGES: "bb. Array r

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Frank Heckenbach
> On 2022/01/02 17:43, Frank Heckenbach wrote: > > > Why would you? Aren't you able to assess the severity of a bug > > yourself? Silent data corruption is certainly one of the most severe > > kind of bugs ... > --- > That's debatable, BTW, as I was reminded of a similar > passthrough of what one m

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Chet Ramey
On 2/5/22 9:41 PM, L A Walsh wrote: That's debatable, BTW, as I was reminded of a similar passthrough of what one might call 'invalid input' w/o warning, resulting in code that worked in a specific circumstance to a change in bash issuing a warning that resulted in breaking code, that, at that p

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Alex fxmbsw7 Ratchev
i just have a small question here the dropping of null bytes is no friend of me and i understand you're there to skip it instead of process, which results in null bytes gone which is not much of an use can't these \0 bytes be encoded at least when a utf8 locale is used as \u0 instead of dropping ?

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Alex fxmbsw7 Ratchev
im sorry i didnt realize it would just prefix to null byte, which uses nullbyte, so it wont work cheers On Sun, Feb 6, 2022 at 11:11 PM Alex fxmbsw7 Ratchev wrote: > > i just have a small question here > the dropping of null bytes is no friend of me and i understand you're > there to skip it inst

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Alex fxmbsw7 Ratchev
a replacement sequence to null bytes i would find a solution to null bytes no i didnt understand these posts of these emails but i am just concerned about the null bytes not being dropped On Sun, Feb 6, 2022 at 11:16 PM Alex fxmbsw7 Ratchev wrote: > > im sorry i didnt realize it would just prefix

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Greg Wooledge
On Sun, Feb 06, 2022 at 11:11:43PM +0100, Alex fxmbsw7 Ratchev wrote: > [[ Regarding nul bytes discarded by command substitution ]] > can't these \0 bytes be encoded at least when a utf8 locale is used as > \u0 instead of dropping ? and a null, ... just > prefix the utf 8 encoding chars to the nul

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Robert Elz
Date:Sun, 6 Feb 2022 18:01:03 -0500 From:Greg Wooledge Message-ID: | I urge you to learn one of these other languages, and use it. | | Bash is a shell, not a full general-purpose programming language. It's | not suited to all tasks. Many other languages are

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread L A Walsh
On 2022/02/06 09:26, Frank Heckenbach wrote: On 2022/01/02 17:43, Frank Heckenbach wrote: Why would you? Aren't you able to assess the severity of a bug yourself? Silent data corruption is certainly one of the most severe kind of bugs ... --- That's debatable, BTW, as I was rem

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Chet Ramey
On 2/6/22 5:11 PM, Alex fxmbsw7 Ratchev wrote: i just have a small question here the dropping of null bytes is no friend of me and i understand you're there to skip it instead of process, which results in null bytes gone which is not much of an use can't these \0 bytes be encoded at least when a

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Alex fxmbsw7 Ratchev
On Mon, Feb 7, 2022 at 12:02 AM Greg Wooledge wrote: > > On Sun, Feb 06, 2022 at 11:11:43PM +0100, Alex fxmbsw7 Ratchev wrote: > > [[ Regarding nul bytes discarded by command substitution ]] > > can't these \0 bytes be encoded at least when a utf8 locale is used as > > \u0 instead of dropping ? a

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Alex fxmbsw7 Ratchev
On Mon, Feb 7, 2022 at 1:47 AM L A Walsh wrote: > > > > > On 2022/02/06 09:26, Frank Heckenbach wrote: > >> On 2022/01/02 17:43, Frank Heckenbach wrote: > >> > >> > >>> Why would you? Aren't you able to assess the severity of a bug > >>> yourself? Silent data corruption is certainly one of the mos

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Alex fxmbsw7 Ratchev
On Mon, Feb 7, 2022 at 3:37 AM Chet Ramey wrote: > > On 2/6/22 5:11 PM, Alex fxmbsw7 Ratchev wrote: > > i just have a small question here > > the dropping of null bytes is no friend of me and i understand you're > > there to skip it instead of process, which results in null bytes gone > > which is

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Lawrence Velázquez
On Sun, Feb 6, 2022, at 11:53 PM, Alex fxmbsw7 Ratchev wrote: > On Mon, Feb 7, 2022 at 12:02 AM Greg Wooledge wrote: >> There are other programming languages besides bash. Some of them can >> store NUL bytes internally, either by encoding and decoding them on the >> fly, or by not using C-style s

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Alex fxmbsw7 Ratchev
On Mon, Feb 7, 2022 at 6:19 AM Lawrence Velázquez wrote: > > On Sun, Feb 6, 2022, at 11:53 PM, Alex fxmbsw7 Ratchev wrote: > > On Mon, Feb 7, 2022 at 12:02 AM Greg Wooledge wrote: > >> There are other programming languages besides bash. Some of them can > >> store NUL bytes internally, either by

Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.

2022-02-06 Thread Lawrence Velázquez
On Mon, Feb 7, 2022, at 1:26 AM, Alex fxmbsw7 Ratchev wrote: > well i saw now, printf a char of "\0" results in 0 bytes out to wc -c % /usr/bin/printf '\0' | wc -c 1 > however my solution still stays > you just use memory locations instead of c strings > and those entries in memory are of

Re: Empty array referenced by indirection reports unbound variable

2022-02-06 Thread konsolebox
On Mon, Feb 7, 2022, 00:31 Chet Ramey, wrote: > From CHANGES: > > ... Well I'm glad. Thanks again! -- konsolebox