mirror of
https://codeberg.org/scip/Config-General.git
synced 2025-12-17 04:31:00 +01:00
2.32
- fixed rt.cpan.org#24232 - import ENV vars only if defined - fixed rt.cpan.org#20742 - dont' overwrite a var if re-defined in current scope, interpolation failed for re-defined vars and used the value of the var defined in outer scope, not the current one. - fixed rt.cpan.org#17852 - a 0 as blockname were ignored. applied patch by SCOP to t/run.t to test for 0 in blocks. - applied most hints Perl::Critic had about Config::General: o the functions ParseConfig SaveConfig SaveConfigString must now imported implicitly. This might break existing code, but is easily to fix. o using IO::File instead of open(). o General.pm qualifies for "stern" level after all. - added much more tests to t/run.t for 'make test'. - using Test::More now. git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@58 be1acefe-a474-0410-9a34-9b3221f2030f
This commit is contained in:
6
t/cfg.16
6
t/cfg.16
@@ -6,12 +6,12 @@ pr=$me/blubber
|
||||
uid = 501
|
||||
</vars>
|
||||
|
||||
base = /opt
|
||||
<etc>
|
||||
dir = $base/conf # $base should not be interpolated
|
||||
base = /usr/local # set $base to a new value in this scope
|
||||
base = /usr # set $base to a new value in this scope
|
||||
log = ${base}/log/logfile # use braces
|
||||
<users>
|
||||
home = $base/home/max # $base should be interpolated
|
||||
home = $base/home/max # $base should be /usr, not /opt !
|
||||
</users>
|
||||
</etc>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user