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

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Fri May 28 15:06:12 EDT 2021


On 2021-05-28, Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> wrote:
> On 2021-05-28, arca... at gmail.com <arcarlini at gmail.com> wrote:
>>
>> Not exactly what you want but you could try this:
>>
>> $ SET COMMAND SYS$INPUT:
>> DEFINE VERB DCLSPELL
>> CLIROUTINE SETDCL
>> QUALIFIER SPELL_CHECK,NEGATABLE
>>
>> $ DCLSPELL/SPELL
>>
>> This will spot commands with typos (which will work if the typo is beyond the fourth character or so):
>>
>> $ directofy
>> %DCL-I-MISSPELL, !AC !AD is misspelled, using !AC !AC!AC
>>
>> The command still works, it just gives you this extra warning.
>>
>> It catches qualifiers too:
>>
>> $ dir/totalness
>> %DCL-I-MISSPELL, !AC !AD is misspelled, using !AC !AC!AC
>>
>
> Thanks for the info but DO. NOT. WANT. :-)
>
> CLIs should either give an error or process the command line input unchanged.
>

By extension, I should also point out I consider the 4-character thing
in DCL to be a terrible idea as well. :-)

> One of the Linux shells does spell checking. I think its a terrible idea.
>

Interesting about the above however. I had no idea it was there in DCL.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.



More information about the Info-vax mailing list