Kedar Mhaswade wrote:
> Also, if someone intended to execute "foolish"
> command, I am not sure if s/he would "mistype" it like "foo".
> A typo is generally having not more than 2 characters of
> "Hamming distance" away from the correctly spelled word. (The
> sequence is important too).
Yes.
> This is rather different (although related to) from the
> "keyword" search where I am trying to search for a command, which
> is also a useful addition.
Right. It definitely needs a different algorithm for sure. Edit distance
from "database" to "start-database" is 6, and that's a lot.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com