Re: FS utils treates directories as files?

From: Douglas Berry <bitnix_at_bitnix.ca>
Date: Tue, 09 Jun 2009 23:26:33 -0400
On Tue, 09 Jun 2009 20:16:48 PDT, Tim Kientzle wrote:
> Thomas Backman wrote:
> > FreeBSD 8.0-CURRENT r193521 (Jun 5), bash:
> > [root_at_chaos /usr/ports]# cat /
> > �g��=[root_at_chaos /usr/ports]#
> > 
> > Mac OS X 10.5, bash:
> > serenity_at_macbookpro ~ $ cat /
> > cat: /: Is a directory
> > 
> > Linux, bash:
> > (21:34) serenity_at_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.)

Have you tried ports/misc/lesspipe?

cheers,
doug
Received on Wed Jun 10 2009 - 01:57:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:49 UTC