On Wed, Nov 12, 2008 at 11:11 PM, Michael Stone <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 08:37:14PM +0100, you wrote: >> >> In what case would that misbehave? > > Don't know, don't want to find out;
Ah, it's just an assumption. ;) > it's just not what cat is there for. > Among other things, I'd assume it's a nightmare for UTF-8. Why? UTF-8 uses 0x80 - 0xff, not 0x00 - 0x31. > If nothing else, > it's a whole unnecessary code path that needs to be maintained, which can be > the source of new exciting bugs, which can slow things down and get in the > way, and which has absolutely nothing to do with the functionality cat is > expected to provide. (And why stop with cat? Why not cram the same > irrelevant functionality into *every* program which might output something > to a terminal? dd could use it, head, tail, fmt, cut, tac (obviously), what > else? Maybe we should find a way to make sure that nothing is allowed to > display anything to a terminal unless it has filtered out any potentially > annoying things? Maybe it would be easier to make the terminal itself filter > the content, unless a program sends some kind of complicated out of band > message that it will filter the content? Hmm--that actually sounds like a > better/more viable approach than modifying every single program ever written > to use stdout.) Maybe you should look at this from the perspective of the user instead of the perspective of the developer. I'm not requesting that you do the filtering 'manuall'y in cat. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]