From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653644221768.tru64-unix-managers.marc@archive.invalid> From: Tru64 User Date: Wed, 19 Dec 2001 16:58:22 +0000 To: tru64-unix-managers Subject: SUMMARY: command correction/suggestion program X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653644221768 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" 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. > > <\> > _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