Re: a.out.h in text-utils/more.c | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Wed, May 14, 2008 at 07:17:45PM -0400, Mike Frysinger wrote:
> On Wednesday 14 May 2008, Karel Zak wrote:
> > On Wed, May 14, 2008 at 06:20:47PM -0400, Mike Frysinger wrote:
> > > we could use libmagic from the file package, but how terribly useful is
> > > that even ?
> >
> > Overkill.
> >
> > I see libmagic in /usr/lib and it also depends on /usr/share/file/magic*.
> > The more(1) should be useful with minimal dependences.
>
> then the question is, is the magic() function useful. i dont think it is.
I agree with you. BTW, less(1):
/*
* Call it a binary file if there are more than 5 binary characters
* in the first 256 bytes of the file.
*/
... it uses isprint()
Karel
--
Karel Zak <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]