Skip to content

Safe default value for unbound variables in dolfinx.conf - #3470

Merged
jhale merged 1 commit into
FEniCS:mainfrom
mleoni-pf:mleoni/safe_default_value_for_vars_in_dolfinx.conf
Oct 15, 2024
Merged

Safe default value for unbound variables in dolfinx.conf#3470
jhale merged 1 commit into
FEniCS:mainfrom
mleoni-pf:mleoni/safe_default_value_for_vars_in_dolfinx.conf

Conversation

@mleoni-pf

Copy link
Copy Markdown
Contributor

I'm sourcing the dolfinx.conf file in a bash script that uses set -u so it crashes because some of the variables referenced in the dolfinx.conf file are not defined. This would normally silently "fail" in bash and evaluate to empty but the proposed changes make it explicit.

@jhale
jhale added this pull request to the merge queue Oct 15, 2024
Merged via the queue into FEniCS:main with commit 7fd0649 Oct 15, 2024
@mleoni-pf
mleoni-pf deleted the mleoni/safe_default_value_for_vars_in_dolfinx.conf branch November 22, 2024 09:43
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

Successfully merging this pull request may close these issues.

2 participants