Date: Mon, 30 Apr 2001 14:03:50 +0200 (CEST) From: Oliver Fromme <olli@secnetix.de> To: freebsd-stable@FreeBSD.ORG Subject: Re: tail Message-ID: <200104301203.OAA40447@lurza.secnetix.de> In-Reply-To: <KPECIILENDDLPCNIMLOFIEOLCCAA.juha@saarinen.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Juha Saarinen <juha@saarinen.org> wrote: > Is there any use for the the garbage tail outputs on a directory? If there > is, I won't say anything else... Just recently the feature that directories can be opened and read like plain files has been very helpful for me, when I was debugging the union mount code and the getdirentries() code in the libc (which, by the way, reads the directory like a plain file and then returns the dirent structures contained in it). You can cat plain text files, binary files, fifos, device nodes -- why should there be a special hack to disallow it for directories? As for the "garbage on screen": Type "cat /kernel". That's much worse. But it does what you asked it to do, and that's how UNIX works, because it assumes that you know what you're doing. Everything else would lead into the area of Windows philosophy ... Just my 2 Euro cents. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104301203.OAA40447>