Skip to content

Commit 7f9f255

Browse files
committed
Update edf.md
1 parent fdea276 commit 7f9f255

File tree

1 file changed

+6
-6
lines changed
  • docs/software/container-engine

1 file changed

+6
-6
lines changed

docs/software/container-engine/edf.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ Environment variable expansion allows for dynamic substitution of environment va
186186
* *Syntax*. Use ${VAR} to reference an environment variable VAR. The variable's value is resolved from the combined environment, which includes variables defined in the host and the container image, the later taking precedence.
187187
* *Scope*. Variable expansion is supported across all EDF parameters. This includes EDF’s parameters like mounts, workdir, image, etc. For example, ${SCRATCH} can be used in mounts to reference a directory path.
188188
* *Undefined Variables*. Referencing an undefined variable results in an error. To safely handle undefined variables, you can use the syntax ${VAR:-}, which evaluates to an empty string if VAR is undefined.
189-
* *Preventing Expansion*. To prevent expansion, use double dollar signs $$. For example, $$${VAR} will render as the literal string ${VAR}.
189+
* *Preventing Expansion*. To prevent expansion, use double dollar signs $$. For example, $${VAR} will render as the literal string ${VAR}.
190190
* *Limitations*
191-
* Variables defined within the [env] EDF table cannot reference other entries from [env] tables in the same or other EDF files (e.g. the ones entered as base environments) . Therefore, only environment variables from the host or image can be referenced.
192-
* *Environment Variable Resolution Order*. The environment variables are resolved based on the following order:
193-
* TOML env: Variable values as defined in EDF’s env.
194-
* Container Image: Variables defined in the container image's environment take precedence.
195-
* Host Environment: Environment variables defined in the host system.
191+
* Variables defined within the [env] EDF table cannot reference other entries from [env] tables in the same or other EDF files (e.g. the ones entered as base environments). Therefore, only environment variables from the host can be referenced.
192+
* *Environment Variable Resolution Order*. The environment variables in containers are set based on the following order:
193+
* EDF env: Variable values as defined in EDF’s [env] table.
194+
* Container Image: Variables defined in the container image's environment take precedence.
195+
* Host Environment: Environment variables defined in the host system.
196196

197197
## Relative paths expansion
198198

0 commit comments

Comments
 (0)