From owner-freebsd-bugs Tue Apr 30 8:25:11 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 0C5E737B41C; Tue, 30 Apr 2002 08:25:03 -0700 (PDT) Received: from pool0453.cvx21-bradley.dialup.earthlink.net ([209.179.193.198] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 172ZUg-0001gf-00; Tue, 30 Apr 2002 08:24:43 -0700 Message-ID: <3CCEB71D.1AD1F911@mindspring.com> Date: Tue, 30 Apr 2002 08:24:13 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: ANdrei Cc: FS@FREEBSD.ORG, bugs@FREEBSD.ORG Subject: Re: xterm & directory cat References: <3CCE8982.6A915F2B@abc.ro> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ANdrei wrote: > why is it possible to do a "cat" o a directory in freebsd? Because directories are implemented as files. It's an implementation detail. It has the side effect of letting you mmap large directories to get them faulted in quickly, if you write your code correctly. > and, if this > is intended (for whatever purpose, but i can't think of any > reasonable...), maybe others can verify that this crashes your xterm, if > you run this command form a xterm under X... actually, it changes your > character set (or whatever, i'm not much into how this works), but the > effect is that you can't use your terminal any more (in a normal way :) Try cat'ing /bin/ls. It's not crashing your xterm, by the way, it's just sending it an escape sequence that locks it up. > hope i'm not missing smtg, and this really s a bug, and i'm posting to > the right lists... > feedback is appreciated, but please cc me, cause i'm not subscribed... The right list would have been -questions. After your xterm is "crashed", use control-right-mouse-button "full reset". Your xterm will "uncrash". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message