On Thu, Oct 27, 2005 at 05:37:04PM +0200, you wrote:
On Thu, Oct 27, 2005 at 10:31:47AM -0400, Michael Stone wrote:
On Thu, Oct 27, 2005 at 01:20:47PM +0200, Eric Van Buggenhaut wrote:
>Using find -type f doesn't solve the problem.
I didn't say it had anything to do with the problem, I just said that
running a process per entry is inefficient.
OK, calm down, please, there's no personal attack, we're just trying to
track down a problem.
Who's not being calm? I don't see any shouting. If you want to track
down your problem don't tell people to calm down who aren't overexcited.
>How is it that I get that sequence: . . / / . / . . / / / . ??
Because in a non-C/POSIX locale that's how sorting works. Case and
punctuation are ignored in a dictionary sort; the only time case and
puncuation matter is if you're doing a ascii sort.
OK, I didn't know that. this ascii option isn't documented in the
manpage. Maybe including it would be useful ? What option is it btw ?
It's not an option, it's how locale rules work. C/POSIX locale uses
ascii sorts for historical reasons.
No one can restart cron (ie, /etc/init.d/cron) but root and I'm the
only person to know root's password.
And if you restarted cron using an environment which is different from
the bootup environment that would fit the scenario I suggested.
>Given this and the example above, I'd say that the problem has nothing
>to do with locale
The example above isn't a problem, and is exactly the expected output
when using a non-C locale.
Using C locale, I get the same result:
[EMAIL PROTECTED]:~]$ LANG=C LC_ALL=C LC_COLLATE=C LOCALE=C find
/usr/local/RealPlayer/share/r* -type f|sort
/usr/local/RealPlayer/share/realplay.applications
/usr/local/RealPlayer/share/realplay.desktop
/usr/local/RealPlayer/share/realplay/embedded_logo.png
/usr/local/RealPlayer/share/realplay/icon.png
/usr/local/RealPlayer/share/realplay.keys
/usr/local/RealPlayer/share/realplay/logo.png
/usr/local/RealPlayer/share/realplay.mime
/usr/local/RealPlayer/share/realplay.png
/usr/local/RealPlayer/share/realplay/prefs_general.png
/usr/local/RealPlayer/share/realplay/setup_title.png
/usr/local/RealPlayer/share/realplay/setup_welcome.png
/usr/local/RealPlayer/share/realplay.xml
or do I miss something ?
Your locale settings only affected find, not sort. Try
find /usr/local/RealPlayer/share/r* -type f | LANG=C LC_ALL=C LC_COLLATE=C
LOCALE=C sort
Mike Stone
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]