Skip to content

Added description of fallback for expanding environment variables #419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ParsingOrder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down