Configuration merging – example 2

Suppose we have the default/sample2.conf base configuration:

[foo] 
bar = 10 
la=20 
[pets] 
cat = red 
Dog=rex 

And we merge a second configuration, local/sample2.conf:

[pets] 
cat=blue 
dog=fido 
fish = bubbles 
 [foo] 
bar= 15 
[cars] 
ferrari =0 

The resultant configuration would be:

[foo] 
bar=15 
la=20 
[pets] 
cat=blue 
dog=rex 
Dog=fido 
fish=bubbles 
[cars] 
ferrari=0 

The things to note in this example are as follows: