Re: [hackers] [sbase][PATCH 1/2] expr: treat expressions as strs until evaluation

2024-01-16 Thread Roberto E. Vargas Caballero
Hi On Sun, Jan 07, 2024 at 11:02:17AM -0700, Randy Palamar wrote: > Comparison operations (>, <, =, etc.) and matching operations must > operate originally provided string not one that has gone back and > forth through string formatting. This caused operations such as > the following to give

[hackers] [sbase][PATCH 1/2] expr: treat expressions as strs until evaluation

2024-01-07 Thread Randy Palamar
Comparison operations (>, <, =, etc.) and matching operations must operate originally provided string not one that has gone back and forth through string formatting. This caused operations such as the following to give incorrect results: ./expr 3 : '.*' Before: 1 After: 5 This commit fixes