[NTLUG:Discuss] interestign feature in Suse 8.2
    Alton R. Pouncey, II 
    alton at trainers-r-us.com
       
    Mon Oct  6 13:05:52 CDT 2003
    
    
  
On Mon, 2003-10-06 at 09:54, MadHat wrote:
> 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".
Thanks for the information.  I just read the man page on tcsh (and
specifically that "feature") - very interesting.
Alton Pouncey
    
    
More information about the Discuss
mailing list