[NTLUG:Discuss] interestign feature in Suse 8.2
MadHat
madhat at unspecific.com
Mon Oct 6 09:54:05 CDT 2003
On Mon, 2003-10-06 at 08:33, Alton R. Pouncey, II wrote:
> All,
>
> This morning, I was going to view a postscript file via ghostview using
> the following syntax:
>
> > ghostview fb100602.ps
>
> and the shell came back with this:
>
> CORRECT>kghostview fb100602.ps (y|n|e|a)?
>
> so, I hit 'y' and kghostview fires up and I am able to read the file.
>
> My question is: how does this "autocorrection" occur? I'm assuming (not
> always a good idea) that this behavior is built into the shell. If so,
> where do I find out how this is done, so I can recreate it in other
> shells on other systems.
>
> I am using tcsh. According to rpm, this belongs to the package
> tcsh-6.12.00-143. Is it how the /bin/tcsh binary was written that
> causes this behavior or can I modify the behavior in a dot file
> somewhere on the system?
It is a feature of tcsh now. This was added some time back, but I
stopped using tcsh some time back as well. the a option sets up an
alias so anytime you type that it will point to the same thing. Take a
look at "man tcsh" and search for "autocorrect" and "spelling
correction".
--
MadHat at Unspecific.com
`But I don't want to go among mad people,' Alice remarked.
`Oh, you can't help that,' said the Cat: `we're all mad here...'
-- Lewis Carroll - _Alice's_Adventures_in_Wonderland_
More information about the Discuss
mailing list