Elektra  0.8.26
Plugin: boolean

Different configurations might use different values for TRUE/FALSE. The boolean plugin canonicalizes boolean values.

Example

# Mount plugin
sudo kdb mount config.ecf user/tests/boolean dump boolean
# By default the plugin uses `1` (true) and `0` (false) to represent boolean values
kdb set user/tests/boolean/truthiness false
kdb setmeta user/tests/boolean/truthiness type boolean
kdb get user/tests/boolean/truthiness
#> 0
# The plugin does not change ordinary values
kdb set user/tests/boolean/key value
kdb get user/tests/boolean/key
#> value
# Undo changes
kdb rm -r user/tests/boolean
sudo kdb umount user/tests/boolean

Configuration