Menu

#2 bug in enchanter waitFor matching

open
nobody
None
5
2007-05-08
2007-05-08
No

Hello,

there's a simple but obvious bug in trunk/core/src/main/java/org/twdata/enchanter/impl/DefaultSSH.java

method lookForMatch. You can't just match one character and expect it to be correct.

Failed example. You are looking for string "pase". You are matching on string "paspase". First "pas" generate match each, then you get "p", which will reset matching and then "ase" won't match.

You can't just forget characters before if there's no match.

Juraj.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.