unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* file magic
@ 2011-11-01 14:13 dsmich
  2011-11-01 22:50 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: dsmich @ 2011-11-01 14:13 UTC (permalink / raw)
  To: guile-user

Greetings Guilers,

The other day I happened to run the file command on some .go files, and they show up as the rather unhelpful "data".  So I added some bits to my /etc/magic file:

0   string   GOOF----   Guile Object
>8  string   LE         little endian
>8  string   BE         big endian
>11 byte     0x34       32bit
>11 byte     0x38       64bit
>13 regex    [0-9.]+    v%s


Much nicer.

I'm on a Debian system, and /etc/magic is there for the editing of local customizations like this.  Not sure if that's possible on other systems.  Sure would be nice if this could be updated at install time.

-Dale




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: file magic
  2011-11-01 14:13 file magic dsmich
@ 2011-11-01 22:50 ` Ludovic Courtès
  2011-11-02 16:47   ` dsmich
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2011-11-01 22:50 UTC (permalink / raw)
  To: guile-user

Hi Dale!

<dsmich@roadrunner.com> skribis:

> The other day I happened to run the file command on some .go files, and they show up as the rather unhelpful "data".  So I added some bits to my /etc/magic file:
>
> 0   string   GOOF----   Guile Object
>>8  string   LE         little endian
>>8  string   BE         big endian
>>11 byte     0x34       32bit
>>11 byte     0x38       64bit
>>13 regex    [0-9.]+    v%s

Neat!  What about submitting it upstream?  :-)

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: file magic
  2011-11-01 22:50 ` Ludovic Courtès
@ 2011-11-02 16:47   ` dsmich
  0 siblings, 0 replies; 3+ messages in thread
From: dsmich @ 2011-11-02 16:47 UTC (permalink / raw)
  To: Ludovic Courtès, guile-user

---- "Ludovic Courtès" <ludo@gnu.org> wrote: 
> Neat!  What about submitting it upstream?  :-)

(smacks head)  Great idea!

Done.

-Dale




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-02 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 14:13 file magic dsmich
2011-11-01 22:50 ` Ludovic Courtès
2011-11-02 16:47   ` dsmich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).