David --
...and then David Champion said...
% On 2001.09.19, in <[EMAIL PROTECTED]>,
% "David T-G" <[EMAIL PROTECTED]> wrote:
% >
% > Actually, I don't think so; that's what's so interesting. I'd love to
% > see the results of same experiment under 2.6 and 8;
%
% Weird: I find that 7 behaves as 9 does -- '[A-Z][a-z]'
% '[N-Z][A-M][n-z][a-m]' works, but the others give "bad string" errors.
Interesting.
% On Solaris 8, this also works, but the other forms do not give "bad
% string". They just include the brackets in the ranges. (IOW, it seems
Strange -- like my SuSE GNU/Linux tr from textutils 2.0 does...
% that they require congruent ranges.) I don't have anything less than
% Solaris 7 anymore. Except... hmm. Yes, SunOS 4.1.4 wins this contest.
% It'll take any number of ranges on either side, the Way Things Ought To
% Be.
*smile*
%
% Guess someone just can't make up their minds. I wonder whether it's Sun
% or a standards agency. I wish I still had other platforms....
Yeah.
%
% Well, the lesson is that tr usage varies wildly among platforms, just
% like expr, but we already knew that. :) So maybe it's best just to have
% your .mailcap call that rot13 shell script, and adapt the script to cope
% with unames appropriately. Or use perl.
sh is portable (see other drifted-off-topic thread :-) but with this
much garbage rolled in I think I will, indeed, go for perl.
%
% --
% -D. [EMAIL PROTECTED] NSIT University of Chicago
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
PGP signature