Here's an example of logical comparisons and arithmetic in rc without them as first-class features, from a script I use to generate passwords
https://paste.sr.ht/~sircmpwn/cbe2b6c95df5d46ed8c095b03964eadcdf0d1e4a
How palatable would this be to you?
@drewdevault Crazy idea, what about an `next` builtin?
i=0 next i # i == 1 next i 5 # i == 6 next i -2 # i == 4
x=0x0F next x # x == 0x10
s=the next s # s == thf
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.