libucl icon indicating copy to clipboard operation
libucl copied to clipboard

The libucl .include macro fails strip the file extension from all but first included file

Open Crest opened this issue 1 year ago • 1 comments

The .include(glob=true, prefix=true) "config.d/*.conf" macro only strips the .conf (or .ucl) suffix from the first file matching the config.d/*.conf" pattern. Given files named config.d/blah.conf and config.d/blub.conf it results in the objects blah (suffix correctly stripped) blub.conf (suffix incorrectly retained).

Crest avatar Aug 23 '24 14:08 Crest

Not a bug, related: it would be useful to make the array of suffixes a parameter with the old default value ['.conf', '.ucl'] as default value. Given an empty array the macro should disable suffix stripping instead of using the default value.

Crest avatar Aug 23 '24 16:08 Crest