Skip to content

Commit

Permalink
Support nested variable expansion
Browse files Browse the repository at this point in the history
Signed-off-by: MarilynFranklin <marilyn.j.franklin@gmail.com>
  • Loading branch information
MarilynFranklin authored and ndeloof committed Oct 27, 2021
1 parent 43f6537 commit 5a48509
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec.md
Expand Up @@ -2418,6 +2418,12 @@ Similarly, the following syntax allows you to specify mandatory variables:
- `${VARIABLE?err}` exits with an error message containing `err` if
`VARIABLE` is unset in the environment.

Interpolation can also be nested:

- `${VARIABLE:-${FOO}}`
- `${VARIABLE?$FOO}`
- `${VARIABLE:-${FOO:-default}}`

Other extended shell-style features, such as `${VARIABLE/foo/bar}`, are not
supported by the Compose specification.

Expand Down

0 comments on commit 5a48509

Please sign in to comment.