diff options
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 08cf1558a..6d0c04dbb 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -415,8 +415,13 @@ GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle | |||
415 | 415 | ||
416 | /** | 416 | /** |
417 | * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" | 417 | * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" |
418 | * where either in the "PATHS" section or the environtment | 418 | * where either in the "PATHS" section or the environtment "FOO" is |
419 | * "FOO" is set to "DIRECTORY". | 419 | * set to "DIRECTORY". We also support default expansion, |
420 | * i.e. ${VARIABLE:-default} will expand to $VARIABLE if VARIABLE is | ||
421 | * set in PATHS or the environment, and otherwise to "default". Note | ||
422 | * that "default" itself can also be a $-expression, thus | ||
423 | * "${VAR1:-{$VAR2}}" will expand to VAR1 and if that is not defined | ||
424 | * to VAR2. | ||
420 | * | 425 | * |
421 | * @param cfg configuration to use for path expansion | 426 | * @param cfg configuration to use for path expansion |
422 | * @param orig string to $-expand (will be freed!) | 427 | * @param orig string to $-expand (will be freed!) |