|
NAME
LIBRARYshtk_import config SYNOPSIS
DESCRIPTIONThe Only the configuration variables previously registered as valid
with a call to
shtk_config_init(3)
will be recognized as valid variables during load. Any variables defined by
the configuration file but not registered in the
EXAMPLESConsider the following configuration file: prefix=/usr
OBJDIR="${prefix}/obj"
SRCDIR="${prefix}/src"
The following piece of code illustrates how to load and display the settings of the file above: shtk_config_init OBJDIR SRCDIR
shtk_config_load ".../path/to/the/file/above.conf"
echo "prefix was defined but is not available:" \
"$(shtk_config_get_default prefix default-value)"
echo "OBJDIR is $(shtk_config_get OBJDIR)"
echo "SRCDIR is $(shtk_config_get SRCDIR)"
ERRORSErrors during the processing of config_file result in the termination of the caller script. SEE ALSOHISTORY
|