Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2001 07:44:08 +1200
From:      "Juha Saarinen" <juha@saarinen.org>
To:        "Donn Miller" <dmmiller@cvzoom.net>
Cc:        <stable@FreeBSD.ORG>
Subject:   RE: tail
Message-ID:  <KPECIILENDDLPCNIMLOFEEPDCCAA.juha@saarinen.org>
In-Reply-To: <3AED6781.8746018D@cvzoom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I was going to let this one go, but...

:: Like so many people before you already explained, doing tail on a
:: directory IS useful in some rare situations, like for example, using
:: tar, and certain other things.

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".

:: 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.



-- Juha



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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