Skip to content
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

Parameter substitution '+' fails #25

Open
chrishunter-agspace opened this issue Aug 11, 2016 · 0 comments
Open

Parameter substitution '+' fails #25

chrishunter-agspace opened this issue Aug 11, 2016 · 0 comments

Comments

@chrishunter-agspace
Copy link

Sometimes a configuration setting should only be included if the corresponding argument is included. With normal parameter substitution this should be able to be accomplished with '+'. For example:

foo=100
echo ${foo+setting} ${foo:-}
$ setting 100

echo ${bar+setting} ${bar:-}
$

What actually happens is envplate complains:

Error while parsing 'configuration.conf': 'configuration.conf' requires undeclared environment variable 'foo', no default is given

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant