Posmatch looks broken to me: arc> (posmatch "a" "bcd")
Error: "string-ref: index 3 out of range [0, 2] for string: \"bcd\""
It looks like posmatch goes out of its way to subtract 2 to ensure it goes off the end of the string: (for i start (- (len seq) (- (len pat) 2))
|