Re: [PATCH v2] cmd: setexpr: fix no matching string in gsub return empty value

2024-10-11 Thread Massimiliano Minella
Hello, On Tue, Oct 8, 2024 at 7:20 PM Francesco Dolcini wrote: > > +Tom > > Hello Massimiliano, > > On Tue, Sep 03, 2024 at 01:06:21PM +0200, Michal Simek wrote: > > HI, > > > > čt 8. 2. 2024 v 16:00 odesílatel Massimiliano Minella > > naps

[PATCH v2] cmd: setexpr: fix no matching string in gsub return empty value

2024-02-08 Thread Massimiliano Minella
From: Massimiliano Minella In gsub, when the destination string is empty, the string 't' is provided and the regular expression doesn't match, then the final result is an empty string. Example: => echo ${foo} => setenv foo => setexpr foo gsub e a bar => echo ${f

[PATCH] cmd: setexpr: fix no matching string in gsub return empty value

2024-02-02 Thread Massimiliano Minella
From: Massimiliano Minella In gsub, when the destination string is empty, the string 't' is provided and the regular expression doesn't match, then the final result is an empty string. Example: => echo ${foo} => setenv foo => setexpr foo gsub e a bar => echo ${f