[snip}
> Completely unrelated: how about adding "Did you mean" kind of
> suggestions. User tries - "spkg install openoffce". Instead of the
> usual, package not found, spkg could output a possible list of
> suggestions - Did you mean openoffice? This can be implemented using
> the Levenshtein word distance algorithm
> (http://en.wikipedia.org/wiki/Levenshtein_distance). For invalid
> names, just calculate the levenshtein distance of the input package
> name with a list of all the packages and show few of the closest
> matches

I would say make zsh the default shell.  I have been using ZSH on OSX
and Linux ( thanks to Ketan, who introduced me to zsh)
It's got correction and completion for most commands. Not sure if it
uses the algorithm you outlined. But it's good enough to take care of
most typos.
We could ship zsh with "sensible defaults' for this thing

What do people have to say on this matter?
-- Manish

Reply via email to