From owner-freebsd-current@FreeBSD.ORG Wed Jun 10 03:16:55 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B079D106566C for ; Wed, 10 Jun 2009 03:16:55 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 857E08FC12 for ; Wed, 10 Jun 2009 03:16:55 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: (from root@localhost) by kientzle.com (8.14.3/8.14.3) id n5A3GnDR016835; Tue, 9 Jun 2009 20:16:49 -0700 (PDT) (envelope-from kientzle@freebsd.org) Received: from dark.x.kientzle.com (fw2.kientzle.com [10.123.1.2]) by kientzle.com with SMTP id q4mj45erxv6fwa5z6n5wcs9hde; Tue, 09 Jun 2009 20:16:49 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <4A2F25A0.2090307@freebsd.org> Date: Tue, 09 Jun 2009 20:16:48 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.21) Gecko/20090601 SeaMonkey/1.1.16 MIME-Version: 1.0 To: Thomas Backman , "'freebsd-current@freebsd.org'" References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: FS utils treates directories as files? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 03:16:55 -0000 Thomas Backman wrote: > FreeBSD 8.0-CURRENT r193521 (Jun 5), bash: > [root@chaos /usr/ports]# cat / > �g��=[root@chaos /usr/ports]# > > Mac OS X 10.5, bash: > serenity@macbookpro ~ $ cat / > cat: /: Is a directory > > Linux, bash: > (21:34) serenity@exscape ~ $ cat / > cat: /: Is a directory > > The same applies to most FS utilities. Is this a feature or not? I find > it pretty darn weird. Back in the old days when file systems were simpler this was maybe a feature, since you could fix FS corruption using a hex editor on the raw directory. But then again, people used to kill mammoths with sharpened sticks. If you have patches, please send them along. (I would really appreciate a "less" that was smart enough to generate directory listings.) Cheers, Tim