Re: [9fans] a question of file and the history of magic

2008-07-11 Thread Dan Cross
I know! We need dynamically loadable shared object files and a new language to describe all the things that file can do, and then a compiler for that language that generates shared objects that are dynamically loaded at runtime Oh, wait. But seriously (yes, Virginia, for the humor impaired,

Re: [9fans] a question of file and the history of magic^H^H^H^H^HUNIX

2008-07-08 Thread Lyndon Nerenberg
On 2008-Jul-6, at 14:59 , Brantley Coile wrote: I remember the day I first saw a file magic file. I welcomed it because for the first time I didn't have access to the source code. Those were the days when you had to have $45k to get the source. Closer to $100K for most people. I had

[9fans] a question of file and the history of magic

2008-07-06 Thread Jeff Sickel
This is a comment/question about file(1) as implemented in Plan 9 and p9p. Over the years I've been using various versions of file with editable magic files. Though file can make mistakes, this worked out rather well when I just wanted a little more detail than 'binary' with the

Re: [9fans] a question of file and the history of magic

2008-07-06 Thread erik quanstrom
This addition helped my scripts become a little more streamlined, but of course puts in an additional entry into the source file I need to track. As file name extensions don't always work across all sorts of systems, many still hamstrung by 8.3, what is the preferred or recommend

Re: [9fans] a question of file and the history of magic

2008-07-06 Thread erik quanstrom
In a sense, the question is more about the historical change and/or adoption of a new file command for Plan 9 that doesn't use a magic file for references. Why opt out of a magic file other than the obvious performance hit of scanning it each run? Is it worth repeating the old forms

Re: [9fans] a question of file and the history of magic

2008-07-06 Thread Brantley Coile
I remember the day I first saw a file magic file. I welcomed it because for the first time I didn't have access to the source code. Those were the days when you had to have $45k to get the source. A hard thing to ask for. Today a separate magic file is just a leftover vestige of the past.

Re: [9fans] a question of file and the history of magic

2008-07-06 Thread Bakul Shah
On Sun, 06 Jul 2008 17:20:12 EDT erik quanstrom [EMAIL PROTECTED] wrote: what is the upside to an external magic file? as you've shown, you can add a file type in 1 line of code. while the external magic file isn't c, i would argue that it's still code. Yes it is code but the advantage is

Re: [9fans] a question of file and the history of magic

2008-07-06 Thread Charles Forsyth
The main disadvantage of gnu file is performance. the magic file contains surprisingly many spells, even excluding muttered incantations.