Mailing List Archive

Spurious up/down messages - locale & sort
I really thought we had this one solved with the tr '[A-Z]' '[a-z]' but, as
it turns out, a dash is < or > digit depending if you locale is POSIX or
en_US.UTF-8. Cron runs as POSIX, so any manual updates have the
possibility of generating spurious up/down diffs. Unable to think of a
good solution, I instead uttered profane words and implemented a quick
solution.



$ diff -U 4 control_rancid.bak control_rancid

--- control_rancid.bak 2011-11-22 10:15:36.000000000 -0700

+++ control_rancid 2011-11-22 10:19:51.000000000 -0700

@@ -42,8 +42,12 @@

#

# control_rancid $GROUP

#

+# #*@& sort locale!!

+LC_COLLATE="POSIX"

+export LC_COLLATE

+

# print a usage message to stderr

pr_usage() {

echo "usage: $0 [-V] [-r device_name] [-m mail rcpt] group" >&2;

}

E-Mail to and from me, in connection with the transaction
of public business,is subject to the Wyoming Public Records
Act, and may be disclosed to third parties.
Re: Spurious up/down messages - locale & sort [ In reply to ]
Tue, Nov 22, 2011 at 10:45:59AM -0700, Daniel Schmidt:
> I really thought we had this one solved with the tr '[A-Z]' '[a-z]' but, as
> it turns out, a dash is < or > digit depending if you locale is POSIX or
> en_US.UTF-8. Cron runs as POSIX, so any manual updates have the
> possibility of generating spurious up/down diffs. Unable to think of a
> good solution, I instead uttered profane words and implemented a quick
> solution.
>

probably belongs in rancid.conf rather than control_rancid.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Re: Spurious up/down messages - locale & sort [ In reply to ]
Yeah, that does sound like a better idea

-----Original Message-----
From: john heasley [mailto:heas@shrubbery.net]
Sent: Tuesday, November 22, 2011 1:59 PM
To: Daniel Schmidt
Cc: rancid-discuss@shrubbery.net
Subject: Re: [rancid] Spurious up/down messages - locale & sort

Tue, Nov 22, 2011 at 10:45:59AM -0700, Daniel Schmidt:
> I really thought we had this one solved with the tr '[A-Z]' '[a-z]'
> but, as it turns out, a dash is < or > digit depending if you locale
> is POSIX or en_US.UTF-8. Cron runs as POSIX, so any manual updates
> have the possibility of generating spurious up/down diffs. Unable to
> think of a good solution, I instead uttered profane words and
> implemented a quick solution.
>

probably belongs in rancid.conf rather than control_rancid.
E-Mail to and from me, in connection with the transaction
of public business,is subject to the Wyoming Public Records
Act, and may be disclosed to third parties.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss