bug#69437: basename fails with suffix containing slash

2024-08-03 Thread Rob Browning
Zefram writes: > $ guile-3.0.9 -c '(write (basename "foo/bar" "o/bar")) (newline)' > Backtrace: > [...] > ERROR: In procedure basename: > Value out of range: 18446744073709551614 Hopefully fixed in main now via: commit c03115c39d35784e87187b467e783d21a326eaf2 basename: check suffix again

bug#69437: basename fails with suffix containing slash

2024-02-27 Thread Bug reports for GUILE, GNU's Ubiquitous Extension Language
$ guile-3.0.9 -c '(write (basename "foo/bar" "o/bar")) (newline)' Backtrace: [...] ERROR: In procedure basename: Value out of range: 18446744073709551614 Looks like this decides based on the whole pathname that the five-character suffix matches, and then tries to remove that suffix from the three-