Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2006 09:10:19 GMT
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/96191: "cat" can display directory contents 
Message-ID:  <200604230910.k3N9AJt8037388@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/96191; it has been noted by GNATS.

From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To: Bjoern Voigt <bjoern@cs.tu-berlin.de>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/96191: "cat" can display directory contents 
Date: Sun, 23 Apr 2006 11:05:13 +0200

 In message <200604230850.k3N8oWre066807@www.freebsd.org>, Bjoern Voigt writes:
 
 >The FreeBSD's version of "cat" is able to display directory contains:
 >
 >$ cat /etc
 >(garbage)
 
 In UNIX a file is a file is a file.
 
 But also, directories, pipes and devices are files.
 
 And as such cat(1) works on them, as it should.
 
 This is not a bug.
 
 -- 
 Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
 phk@FreeBSD.ORG         | TCP/IP since RFC 956
 FreeBSD committer       | BSD since 4.3-tahoe    
 Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604230910.k3N9AJt8037388>