Re: [coreutils] How do you copy 60 million files?

2010-09-29 Thread Dmitry Ilyin
> OK, OK, so I shouldn't waste time reading The Register, but I do, > so I can't resist sharing a pointer to this story: > Pott T. How do you copy 60m files? The Register (2010-09-24) > > Basically, Pott's problem was that he had to

Re: [coreutils] tr: case mapping anomaly

2010-09-29 Thread Eric Blake
On 09/29/2010 08:01 AM, Eric Blake wrote: Time for me to ask for clarification from the Austin Group, I suppose. But given existing practice, I guess the argument should be that tr is explicitly different than m4. Now raised with the Austin Group: http://austingroupbugs.net/view.php?id=325 --

Re: [coreutils] tr: case mapping anomaly

2010-09-29 Thread Eric Blake
On 09/29/2010 06:40 AM, Pádraig Brady wrote: +# Ensure the size of the case classes are accounted +# for as a unit. +echo 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | +tr '[:upper:]A-B' '[:lower:]0'>out || _fail=1 +echo '00cdefghijklmnopqrstuvwxyz'> exp Huh? A and B are both in [:upper

Re: [coreutils] tr: case mapping anomaly

2010-09-29 Thread Pádraig Brady
On 29/09/10 12:59, Eric Blake wrote: Thanks for the review. I agree with your tweaks, though since I've already pushed, I don't think it's worth amending. >> + >> +# Ensure we extend string2 appropriately >> +tr '[:upper:]- ' '[:lower:]_' < /dev/null || _fail=1 > > Seems non-portable to

Re: [coreutils] tr: case mapping anomaly

2010-09-29 Thread Eric Blake
On 09/28/2010 06:23 PM, Pádraig Brady wrote: I found a few more issues: This valid translation spec aborted: LANG=en_US tr '[:upper:]- ' '[:lower:]_' This misaligned conversion spec was allowed: LANG=C tr 'A-Y[:lower:]' 'a-z[:upper:]' This misaligned spec was allowed by extending the class

Re: [coreutils] tr: case mapping anomaly

2010-09-29 Thread Pádraig Brady
On 29/09/10 07:45, Jim Meyering wrote: > Pádraig Brady wrote: >> +# characters in some locales, triggered abort()s and invalid behavior >> +if test "$(LC_ALL=en_US.ISO-8859-1 locale charmap 2>/dev/null)" = >> ISO-8859-1; >> +then >> + ( > > No big deal, but why run this in a subshell? > It doesn