Hmm, I couldn't really figure out what you were refering to ("ignores the last one") till I paid closer attention to the string you were inputting.

I guess a better way of stating this bug might be:
$bfind returns a false match if it reaches the end of the variable while in a partial match, and it's only one character away from completing the match.

However, I cannot seem to reproduce this error in my own coding. Please use an example similar to these, using only /bset and $bfind to demonstrate this error.

//bset -t &binvar 1 ABCD | echo -a $bfind(&binvar,1,CDE)
//bset -t &binvar 1 ABCDEABCD | echo -a $bfind(&binvar,4,CDE)

//bset &binvar 1 65 66 67 68 | echo -a $bfind(&binvar,1,67 68 69)
//bset &binvar 1 65 66 67 68 69 65 66 67 68 | echo -a $bfind(&binvar,4,67 68 69)

The above two sets of examples are identical, except that specifying plain-text in $bfind is NOT case-sensitive. The above examples return the expected results of 0 (no match).

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!