diff options
author | Thien-Thi Nguyen <ttn@gnu.org> | 2022-02-22 07:31:11 -0500 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnu.org> | 2022-02-22 07:31:11 -0500 |
commit | eb1bedb6a2384e1872dcca69c8a9492a72fe375b (patch) | |
tree | 873d70240809715fb86a1f28acfc5d40e6c56111 /doc/doc.org | |
parent | 2369b6d65baaf5698b29cd6909b62959593f4911 (diff) | |
download | taler-util-eb1bedb6a2384e1872dcca69c8a9492a72fe375b.tar.gz taler-util-eb1bedb6a2384e1872dcca69c8a9492a72fe375b.tar.bz2 taler-util-eb1bedb6a2384e1872dcca69c8a9492a72fe375b.zip |
Document nested var substitution
* doc/doc.org (class =TalerConfig=, value types):
Document that the second type of var substitution can nest.
Diffstat (limited to 'doc/doc.org')
-rw-r--r-- | doc/doc.org | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/doc.org b/doc/doc.org index 8522ead..07237fd 100644 --- a/doc/doc.org +++ b/doc/doc.org @@ -402,9 +402,8 @@ These mimic shell-style variable expansion. In all these constructs, the value of =X= replaces the construct. In the second one only, if the value of =X= is empty, use the value of =Y= instead. - -FIXME: Can the second type be nested (i.e., =${X:-${Y:-Z}}=)? -=> Yes. +Also, the second type can be nested, i.e., =${X:-${Y:-Z}}=. +That is, if =X= is empty, try =Y=, and if =Y= is empty, try =Z=. For example, =${TMPDIR:-/tmp}/taler-test= expands to =/var/tmp/taler-test= if environment variable =TMPDIR= has value =/var/tmp=, otherwise |