A shell in Rust could be really cool
A shell in Rust could be really cool
Posted Feb 17, 2025 13:42 UTC (Mon) by taladar (subscriber, #68407)In reply to: A shell in Rust could be really cool by himi
Parent article: Rewriting essential Linux packages in Rust
You get exactly that error but if you e.g. write a script in e.g. March and test it only with dates occurring while you write it (and maybe 01 and 12 for over/underflow edge cases) you can easily end up with a script that breaks with that error in August or September (month 08 and 09).
The solution is easy once you know about it, you can simply prefix every variable in the arithmetic expression with 10# to force base 10 but you need to know about.
