Re: [hackers] [sbase][PATCH 2/2] expr: don't evaluate matched substr as a number

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 16 Jan 2024 09:19:38 +0100

Hi,

On Sun, Jan 07, 2024 at 11:02:18AM -0700, Randy Palamar wrote:
> POSIX specifies that if the pattern contains a subexpression then
> the first matched subexpression should be returned if it exists.
>
> This fixes things like the following:
>
> ./expr 00003 : '\(.*\)'
> Before: 3
> After: 00003

Applied, thanks!

Roberto Vargas
Received on Tue Jan 16 2024 - 09:19:38 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 16 2024 - 09:24:35 CET