From owner-freebsd-stable Mon Apr 30 13:54:49 2001 Delivered-To: freebsd-stable@freebsd.org Received: from beastie.saturn-tech.com (beastie.saturn-tech.com [207.229.19.136]) by hub.freebsd.org (Postfix) with ESMTP id 48C8237B422 for ; Mon, 30 Apr 2001 13:54:46 -0700 (PDT) (envelope-from drussell@saturn-tech.com) Received: from localhost (drussell@localhost) by beastie.saturn-tech.com (8.11.1/8.11.0) with ESMTP id f41BSeV80778; Tue, 1 May 2001 05:28:41 -0600 (MDT) (envelope-from drussell@saturn-tech.com) X-Authentication-Warning: beastie.saturn-tech.com: drussell owned process doing -bs Date: Tue, 1 May 2001 05:28:40 -0600 (MDT) From: Doug Russell To: Juha Saarinen Cc: Donn Miller , stable@FreeBSD.ORG Subject: RE: tail In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 May 2001, Juha Saarinen wrote: > Note the "rare situations" -- it's not useful when you make a typo, or a > mistake. > > :: Remember, a directory is treated as a > :: regular file on unix filesystems. > > Not sure about this; if you e.g. vi a directory, it will warn you that it > isn't a "regular file". Only because vi specifically recognises that case. > :: I see no reason to correct tail's > :: behavior. If you sit there and do `tail' on a directory all day long, > :: then you've got problems. Surely, you might want to modifiy cat's > :: behavior, because some poor unsuspecting user might get some ugly > :: garbage printed to his terminal when he does 'cat' on a disk device. > > So the best thing to do is to keep the current behaviour for tail et al, but > make it accessible through a flag. Most of the time, that behaviour isn't > desirable, hence it should only be invoked if you really need it. No, the behavior should stay the same by default, with a flag that can be used to turn on "sanity checking". You would have to change FAR, FAR too many things to make the whole system dafault to "typo proof" behavior. Like I said in my previous message, having some sort of add-on that you could use to MAKE the system more user-friendly, etc would be a very worthwhile (although rather large) project, and 'A Good Thing'. Changing the default behavior of the entire system to be more like Windows is NOT. Later...... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message