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

Craig A. Berry craigberry at nospam.mac.com
Fri May 28 18:57:29 EDT 2021


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




More information about the Info-vax mailing list