From owner-freebsd-hackers Sun Feb 17 22:23:56 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id EE4A837B43B for ; Sun, 17 Feb 2002 22:23:42 -0800 (PST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g1I6Ndk71540 for ; Mon, 18 Feb 2002 19:23:40 +1300 (NZDT) (envelope-from dan@lists.unixathome.org) Message-Id: <200202180623.g1I6Ndk71540@lists.unixathome.org> From: "Dan Langille" Organization: DVL Software Limited To: hackers@freebsd.org Date: Mon, 18 Feb 2002 01:23:08 -0500 MIME-Version: 1.0 Subject: file(1) returns amusing result Reply-To: dan@langille.org X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As part of my FreshPorts fun, I decided that after fetching a file from cvsweb, I should make sure the fetch worked. I decided to do that via file(1) and inspect the output. I was testing for ASCII, but that appears to not be good enough. Now I just test for HTML and reverse the sense of the test. Here was the most amusing output: $ file -b /usr/home/dan/ports/databases/mysql++/Makefile Apple Old Partition data block size: 21117 first type: AS_CONFIGURE= yes, number of blocks: 1702047597, $ head /usr/home/dan/ports/databases/mysql++/Makefile # ports collection makefile for: MySQL++ # Date created: 20th July 2000 # Whom: Miklos Niedermayer # # $FreeBSD: ports/databases/mysql++/Makefile,v 1.10 2002/02/11 13:15:14 ijliao Exp $ # PORTNAME= mysql++ PORTVERSION= 1.7.9 CATEGORIES= databases devel -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message