From 28be4dad300f0354b7d8dd6e277491112d67ae62 Mon Sep 17 00:00:00 2001 From: Grigoriy Mikhalkin Date: Tue, 23 Oct 2018 23:14:14 +0300 Subject: [PATCH] Added description of fallback for expanding environment variables --- ParsingOrder.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ParsingOrder.rst b/ParsingOrder.rst index fb3c5642..32dac6f0 100644 --- a/ParsingOrder.rst +++ b/ParsingOrder.rst @@ -103,7 +103,13 @@ The first step is substituting all of the $(VALUE) occurrences with the value of [uwsgi] foobar = $(PATH) -foobar value will be the content of shell's PATH variable +foobar value will be the content of shell's PATH variable. + +You can also specify a fallback value for environment variable: + +1. `$(VARIABLE:-DEFAULT)` will evaluate to default if VARIABLE isn't set or empty + +2. `$(VARIABLE-DEFAULT)` will evaluate to default only if VARIABLE isn't set The second step will expand text files embraced in @(FILENAME)