From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: file magic Date: Tue, 1 Nov 2011 10:13:52 -0400 Message-ID: <20111101141353.XMMDB.2313.root@cdptpa-web14-z01> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320156859 29770 80.91.229.12 (1 Nov 2011 14:14:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2011 14:14:19 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Nov 01 15:14:10 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RLF6N-0000Ed-PP for guile-user@m.gmane.org; Tue, 01 Nov 2011 15:14:07 +0100 Original-Received: from localhost ([::1]:42873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLF6M-0000jr-DG for guile-user@m.gmane.org; Tue, 01 Nov 2011 10:14:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLF6J-0000jj-AZ for guile-user@gnu.org; Tue, 01 Nov 2011 10:14:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLF6B-0001bq-Rf for guile-user@gnu.org; Tue, 01 Nov 2011 10:14:03 -0400 Original-Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:59985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLF6B-0001bC-Ng for guile-user@gnu.org; Tue, 01 Nov 2011 10:13:55 -0400 Authentication-Results: cdptpa-omtalb.mail.rr.com smtp.user=dsmich@roadrunner.com; auth=pass (LOGIN) X-Authority-Analysis: v=1.1 cv=kKYgWXE3sh1YR5bbiI52Wh2ufSH3Ycy8lZKH6NqBFC8= c=1 sm=0 a=zTVDa7HKqxcA:10 a=IkcTkHD0fZMA:10 a=yEvcHlCFSfLMB16V_RYA:9 a=QEXdDO2ut3YA:10 a=XdO4N0R2zuzWqvAWBIpzDw==:117 X-Cloudmark-Score: 0 Original-Received: from [10.127.132.105] ([10.127.132.105:63149] helo=cdptpa-web14-z01) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTPA id 9E/44-16221-0AEFFAE4; Tue, 01 Nov 2011 14:13:53 +0000 X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 75.180.132.121 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8924 Archived-At: 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