Skip to content

added configuration option to define the env command to use for shebangs#3613

Merged
boegel merged 5 commits intoeasybuilders:developfrom
ComputeCanada:configurable_env_for_shebang
Mar 16, 2021
Merged

added configuration option to define the env command to use for shebangs#3613
boegel merged 5 commits intoeasybuilders:developfrom
ComputeCanada:configurable_env_for_shebang

Conversation

@mboisson
Copy link
Copy Markdown
Contributor

With the feature introduced in PR #2878, it can break some scripts, because the arguments following the command are passed as a single argument. This is fixed in recent env by providing the option -S. This is however not available on all operating systems. Notably, the /usr/bin/env provided by CentOS7 does not support that.

This PR makes this a configuration option that sites can use to point to a different env command and optionally specify the -S argument if supported by their OS.

Comment thread easybuild/tools/options.py Outdated
@boegel boegel added this to the next release (4.3.4?) milestone Mar 16, 2021
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mboisson Test problem is fixed with ComputeCanada#24

pass custom env command in test_fix_shebang via --env-for-shebang command line option
@boegel boegel merged commit 4038b80 into easybuilders:develop Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants