4. Ignore Unset Variable Errors
With these files present in your working directory:
properties
OCCAECAT=mollit dolor anim
DESERUNT=
CUPIDATAT
txt
OCCAECAT's value is: ${OCCAECAT}; whereas DESERUNT is empty: "${DESERUNT}".
Since CUPIDATAT is declared but not assigned in cillum_eu.properties, and given that the --ignore-unset-vars flag is enabled, this variable won't be replaced: ${CUPIDATAT}.
Same thing for INCIDIDUNT, which is not even declared at all: ${INCIDIDUNT}.
When the following command is executed:
sh
$ dotenv-subst --ignore-unset-vars --env-file=cillum_eu.properties irure_quis.txt
The interpolated output is written to the file(s) below:
txt
OCCAECAT's value is: mollit dolor anim; whereas DESERUNT is empty: "".
Since CUPIDATAT is declared but not assigned in cillum_eu.properties, and given that the --ignore-unset-vars flag is enabled, this variable won't be replaced: ${CUPIDATAT}.
Same thing for INCIDIDUNT, which is not even declared at all: ${INCIDIDUNT}.
🔍 Further Reading
Check out the supported syntax for defining interpolation variables in your source files.
All available command options and flags are documented in CLI Options Reference.