🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #430

Re: Improving "file" (was Re: Making Solaris 2.1 smarter...)

#430
From: David R. Linn
Date: Thu, 07 Jan 1993 15:08
37 lines
2271 bytes
In article <16235@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:
>"file" probably should have some way of saying something like
>
>	0	pattern		%! PS-Adobe-*	PostScript document, version %s
>	0	string		%!		PostScript document
>
>It should probably *also* have keywords such as "beshort", "belong",
>"leshort", and "lelong", to extract a multi-byte number in a *fixed*
>byte order, rather than in the machine's *native* byte order.
>
>It should probably also remove the backslash escapes from "string", and
>have a "cstring" type for strings that *do* include the backslash
>escapes, unless AT&T picked up the backslash escapes in SVR4; otherwise,
>the Solaris 2.x "file" is incompatible with the "file" in other SVR4's,
>because the SVR4 one would have an entry
>
>	0	string		\begindata	Andrew Toolkit document
>
>for Andrew Toolkit documents, while the SunOS 4.x and 5.x one would have
>an entry
>
>	0	string		\\begindata	Andrew Toolkit document
>
>Oh, yes, and USL should pick up *all* of the above, including "cstring",
>*and* should pick up the bit-field extracting stuff from the SunOS
>"file", *and* should pick up the damn man page for the magic file format
>- they're all clear wins.  ("Documenting" the format only with that
>quick-and-dirty comment in the beginning of "/etc/magic" is just
>ridiculous.)

I'm just learning to use perl and wonder if anyone else thinks that perl
would be a good implementation language for the extended file(1) that
Guy describes.
-- 
David R. Linn, System/Mail/News Manager	| INET: drl@vuse.vanderbilt.edu
Disclaimer: I speak only for myself	| Phone: [+1] 615-343-6164
      "Some do, some don't and that's the way of the world."
Technical Details
Message-ID: <C0Hoqv.GtJ@vuse.vanderbilt.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!vuse.vanderbilt.edu!drl
References: <1993Jan5.135419.4032@cas.org> <1993Jan5.171945.29966@fwi.uva.nl> <16235@auspex-gw.auspex.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.bugs.sys5
Path: arc1-ca.pugleaf.net!sparky!uunet!vuse.vanderbilt.edu!drl
From: drl@vuse.vanderbilt.edu (David R. Linn)
Subject: Re: Improving "file" (was Re: Making Solaris 2.1 smarter...)
Message-ID: <C0Hoqv.GtJ@vuse.vanderbilt.edu>
Sender: news@vuse.vanderbilt.edu
Nntp-Posting-Host: jester
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
References: <1993Jan5.135419.4032@cas.org> <1993Jan5.171945.29966@fwi.uva.nl> <16235@auspex-gw.auspex.com>
Distribution: na
Date: Thu, 7 Jan 1993 15:08:54 GMT
Lines: 37