SUMMARY: command correction/suggestion program

From: Tru64 User <tru64user_at_yahoo.com>
Date: Wed, 19 Dec 2001 08:58:22 -0800 (PST)

Once again quick responses from the list, thanks to
John Vernier, J.A Guitierrez, Chris Von Grebe and Gary
Gale for the responses.
the ksh part was the easiest...works
still trying to figure out the filename correction
from bash setup. But, feature is in bash:
http://www.gnu.org/manual/bash-2.02/text/bashref.txt
  
    
    `cdspell'
          If set, minor errors in the spelling of a
directory component
          in a `cd' command will be corrected. The
errors checked for
          are transposed characters, a missing
character, and a
          character too many. If a correction is
found, the corrected
          path is printed, and the command proceeds.
This option is
          only used by interactive shells.

Responses:
I think you get the correction stuff in tcsh if you
put the following
line in your .tcshrc:

set correct = all

If not, I certainly have this feature with tcsh, and I
can look more
closely at my .tcshrc to see if it is something else.
Although I like
the feature in general, it can be annoying, especially
when you want
to move a file to a similar name. It always asks if
you want to move
it to itself :-)

--- "J.A. Gutierrez" <spd_at_gtc1.cps.unizar.es> wrote:
> > eg. i want to cd to "somefile", and instead, i
> type:
> > "cd smefile" it would say smefile is not found in
> this
> > dir, did u mean "somefile", then a y or n prompt.
>
> bash
> >
> > Also file completion in Ksh...howto. No problem
> with
> > csh or tcsh.
>
> <esc><\>
>


_Thanks
Richard

=====


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
Received on Wed Dec 19 2001 - 16:59:10 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT