[Pkg-exim4-users] order of file concatenation

Andreas Metzler ametzler at downhill.at.eu.org
Fri Oct 7 18:00:22 UTC 2005


On 2005-10-07 Ross Boylan <ross at biostat.ucsf.edu> wrote:
> I started with
> 30_exim4-config_remote_smtp
> 30_exim4-config_remote_smtp_smarthost

> And wanted to add a bit after the remote_smtp transport.  So I created
> 30_exim4-config_remote_smtp_rb
> but this ended up *after* the smarthost stuff.
> 30_exim4-config_remote_smtp_a_rb
> had the same problem.

Works for me.
[...]
> Is this to be expected?  Why?  README.Debian says files are taken in
> lexical sort order, and this doesn't seem to work that way.

The sorting is done by:

----------
unset LANG LC_COLLATE LC_ALL
...
for F in $(ls $1); do
----------
i.e. we are relying in on ls to do correct sorting. Afaict all
variants of ls I can come up with (/bin/ls and the builtin version
from bash) handle 
30_exim4-config_remote_smtp
30_exim4-config_remote_smtp_rb
30_exim4-config_remote_smtp_smarthost
correctly.

And as we are also taking care of locales I really have no idea why it
breaks for you.
                cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"



More information about the Pkg-exim4-users mailing list