Re: Midnight Commander 4.5.13 is out



> I am deciding if a file is a manual page based on a regexp.

I'm assuming you're opening the file and looking for gnroff -man commands
right?

> There is a function that can do a better job, at the expense of being
> very slow.  I can put a switch so that you can run in this special
> slow mode.

There must be an easier way to determine a filetype.  On the Amiga, it's
fairly easy to know what type of file it is using datatypes.  I don't know
too much about how it works, but I know that it is somewhat based on
dynamic libraries.  

	sri

---------------------------------------------------------------------------
Sri Ramkrishna         /|\ Unix is very user friendly, its just very picky
email: sri@aracnet.com -|- on who it is friendly to. -- Unknown? 
phone: 503-356-1078    \|/ 
---------------------------------------------------------------------------
                        |





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]