From owner-freebsd-current@FreeBSD.ORG Wed Jun 10 03:57:44 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 B257510656D9; Wed, 10 Jun 2009 03:57:44 +0000 (UTC) (envelope-from doug@bitnix.ca) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.freebsd.org (Postfix) with ESMTP id 82E538FC1B; Wed, 10 Jun 2009 03:57:44 +0000 (UTC) (envelope-from doug@bitnix.ca) Received: from srv.cnd.dundas.on.ca (d24-141-53-33.home.cgocable.net [24.141.53.33]) by fep1.cogeco.net (Postfix) with ESMTP id 711601E65; Tue, 9 Jun 2009 23:26:34 -0400 (EDT) Received: from monk.cnd.dundas.on.ca (monk.cnd.dundas.on.ca [10.87.0.20]) by srv.cnd.dundas.on.ca (8.14.3/8.14.3) with ESMTP id n5A3QXHQ050495; Tue, 9 Jun 2009 23:26:34 -0400 (EDT) (envelope-from doug@bitnix.ca) Received: from monk.cnd.dundas.on.ca (localhost [127.0.0.1]) by monk.cnd.dundas.on.ca (8.14.3/8.14.3) with ESMTP id n5A3QXKV060104; Tue, 9 Jun 2009 23:26:33 -0400 (EDT) (envelope-from doug@monk.cnd.dundas.on.ca) Message-Id: <200906100326.n5A3QXKV060104@monk.cnd.dundas.on.ca> To: Tim Kientzle In-reply-to: Your message of "Tue, 09 Jun 2009 20:16:48 PDT." <4A2F25A0.2090307@freebsd.org> From: "Douglas Berry" Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 09 Jun 2009 23:26:33 -0400 Sender: doug@bitnix.ca Cc: freebsd-current@freebsd.org, Thomas Backman Subject: Re: FS utils treates directories as files? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Douglas Berry 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:57:45 -0000 On Tue, 09 Jun 2009 20:16:48 PDT, Tim Kientzle wrote: > Thomas Backman wrote: > > FreeBSD 8.0-CURRENT r193521 (Jun 5), bash: > > =5Broot=40chaos /usr/ports=5D=23 cat / > > =EF=BF=BDg=EF=BF=BD=EF=BF=BD=3D=5Broot=40chaos /usr/ports=5D=23 > >=20 > > Mac OS X 10.5, bash: > > serenity=40macbookpro =7E =24 cat / > > cat: /: Is a directory > >=20 > > Linux, bash: > > (21:34) serenity=40exscape =7E =24 cat / > > cat: /: Is a directory > >=20 > > The same applies to most FS utilities. Is this a feature or not? I fi= nd=20 > > it pretty darn weird. >=20 > 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. >=20 > If you have patches, please send them along. > (I would really appreciate a =22less=22 that was > smart enough to generate directory listings.) Have you tried ports/misc/lesspipe? cheers, doug