dev@glassfish.java.net

Re: "Did you mean" in asadmin

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Fri, 11 Aug 2006 12:16:22 -0700

JDS Linux provides an interactive tcsh which corrects my commands all
the time:

    /home/paulsen> mrdir somedir

    CORRECT>rmdir somedir (y|n|e|a)?

It's surprising how accurate it is. I really like this feature.

Ken

vince kraemer wrote:
> Craig,
>
> I remember encountering a compiler that suggested corrections. I
> forget whether the suggestions were interactive or not...
>
> I am thinking that it was the UCSD P-System compiler for Pascal?
>
> Do you remember something similar?
>
>
> vbk
>
> Craig L Russell wrote:
>> Hi Kohsuke,
>>
>> This is a great idea, perhaps you could blog about it?
>>
>> I think it applies to lots of different cases and needs wider
>> awareness. You didn't mention what package it was in. Could it return
>> a String[ ] of possible candidates ranked by nearness to the subject
>> String? Then you could offer the user a choice, e.g.
>>
>> "Your command "foo" was not recognized. Perhaps you meant 'go-foo',
>> 'foo-bar', or 'foo-lish'?"
>>
>> Sweet.
>>
>> Craig
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>