Date: Tue, 30 Apr 2002 08:24:13 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: ANdrei <andrei@abc.ro> Cc: FS@FREEBSD.ORG, bugs@FREEBSD.ORG Subject: Re: xterm & directory cat Message-ID: <3CCEB71D.1AD1F911@mindspring.com> References: <3CCE8982.6A915F2B@abc.ro>
next in thread | previous in thread | raw e-mail | index | archive | help
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-fs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CCEB71D.1AD1F911>