From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 09:21:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BCEE16A4B3 for ; Mon, 22 Sep 2003 09:21:21 -0700 (PDT) Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.103.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9072A43F93 for ; Mon, 22 Sep 2003 09:21:20 -0700 (PDT) (envelope-from mph@wopr.caltech.edu) Received: from wopr.caltech.edu (localhost.caltech.edu [127.0.0.1]) by wopr.caltech.edu (8.12.9/8.12.9) with ESMTP id h8MGLJRx078949; Mon, 22 Sep 2003 09:21:19 -0700 (PDT) (envelope-from mph@wopr.caltech.edu) Received: (from mph@localhost) by wopr.caltech.edu (8.12.9/8.12.9/Submit) id h8MGLJnm078948; Mon, 22 Sep 2003 09:21:19 -0700 (PDT) Date: Mon, 22 Sep 2003 09:21:19 -0700 From: Matthew Hunt To: Karlsson Mikael HKI/SOSV Message-ID: <20030922162119.GA78498@wopr.caltech.edu> References: <20030919083627.K99065@wonkity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i cc: freebsd-questions@freebsd.org Subject: Re: Re:Re: Cat a directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2003 16:21:21 -0000 On Mon, Sep 22, 2003 at 09:06:00AM +0300, Karlsson Mikael HKI/SOSV wrote: > Try to run for example "cat /bin" in Linux, HP-UX, Solaris and other > *NIXes and I'm 90% certain that they will not show the directory but > an error message saying something. "cat /bin" on Solaris 9 does exactly the same thing as on FreeBSD; shows the contents of the directory, just like you're asking it to. Just because you can't fathom a use for this behavior doesn't mean it's wrong. If you don't want to see it, don't ask "cat" to show it to you. -- Matthew Hunt * Science rules. http://www.pobox.com/~mph/ *