apptainer / apptainer-userdocs

Other
4 stars 25 forks source link

Use export in %environment to ensure variables are inherited by subprocesses #267

Closed pontus closed 7 months ago

pontus commented 7 months ago

Fix so there isn't an example for %environment without export, as sourcing that file won't make the variable available in subprocesses. In current version of apptainer that seems to be the shell offered as well, so an unexported variable in %environment doesn't seem to be detectable.

DrDaveD commented 7 months ago

Thanks. Please re-create the commit with git commit -s to satisfy the DCO.

pontus commented 7 months ago

Apologies, fixed.

DrDaveD commented 7 months ago

Please also cherry-pick to the new 1.3 branch.