[Info-vax] Can DCL be enhanced to report why a qualifier is ambiguous ?

Dave Froble davef at tsoft-inc.com
Fri May 28 20:30:16 EDT 2021


On 5/28/2021 6:57 PM, Craig A. Berry wrote:
>
> On 5/28/21 5:27 PM, Jan-Erik Söderholm wrote:
>> Den 2021-05-28 kl. 20:54, skrev Simon Clubley:
>>
>>>
>>> One of the Linux shells does spell checking. I think its a terrible
>>> idea.
>>
>> Like this?
>>
>> $ sql shwo table
>> %SQL-I-SPELLCORR, identifier SHWO replaced with SHOW
>> User tables in database with filename SQL$DATABASE
>>       ARTLAB
>>       DB_SUBMIT
>>       DW101T
>>       ...
>>       ...
>
> Now *that's* a bad idea -- automatically substituting what the user said
> with what s/he might have meant, although I suppose it can't do much
> damage in a show command.  I hope that that "drool database" doesn't get
> automatically turned into "drop database" and there went the whole
> enchilada.
>
> Using a soundex algorithm or something similar to suggest what might
> have been intended and permitting the user to try again with the
> suggested alternative does make sense and is actually pretty common
> these days.  For example:
>
> $ git lob
> git: 'lob' is not a git command. See 'git --help'.
>
> The most similar command is
>     log
>

Some of these ideas are almost as good as J.F. Meizi's idea about 
password completion.

I think I'll stick with a bit more precision.

:-)

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list