csh with spelling correction
James David Hobbs
hobbs at tove.umd.edu
Mon Jan 15 10:04:30 AEST 1990
tcsh does a very restricted form of spelling correction.
Here is a sample interaction with tcsh:
% cm -o out main..c <cr>
cm: Command not found.
% cm -o out main..c
^ use editing commands to get last line, and move cursor here.
Now hit <esc-s>
% c -o out main..c
^ it got a command but clearly not the desired one
% cc -o out main..c
^ if add c here and hit <cr>
No source file main..c
% cc -o out main..c
^ if get last command and hit <esc-s>
% cc -o out main.c
^ now hit <cr>
%
Here is how a past shell of mine worked:
% cm -o out main..c
cm: Command not found.
The command has been corrected
? cc -o out main.c
y <cr>
%
The type of spelling correction that I am talking about is
syntax-sensitive.
David Hobbs
More information about the Comp.unix.questions
mailing list