[dev] [bug] sbase / expr: loss of leading zeros in string operations
Hello,
Thanks for the software.
For your information, with the latest and also with earlier sbase:
Expected:
$ expr 00003 : '.*'
5
$ expr 00003 : '\(.*\)'
00003
$ expr 00003x : '\(.*\)'
00003x
Observed:
$ ./expr 00003 : '.*'
1
$ ./expr 00003 : '\(.*\)'
3
$ ./expr 00003x : '\(.*\)'
00003x
The leading zeros are lost if the argument looks like a number.
Regards, fomha4
Received on Sun Jan 07 2024 - 13:20:21 CET
This archive was generated by hypermail 2.3.0
: Sun Jan 07 2024 - 13:24:08 CET