Skip to content

Fix errors when NXF_HOME contains spaces #4456

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

Merged
merged 2 commits into from
Oct 31, 2023
Merged

Conversation

bentsherman
Copy link
Member

Close #4360

This PR applies the changes suggested in the original issue, basically ensures that any variables based on NXF_HOME are correctly quoted to prevent argument splitting.

Note the caveat from the original issue:

It is worth noting that although the %q conversion operator appears to be well supported, it is not portable according to POSIX. In practice, I have not found this to be a problem, but I don't like it. Hopefully someone with more sh-fu than me has a better idea.

I do not have more bash-fu, so I did not try to find a better solution...

By the way, a helpful thing I found was to install the shellcheck extension in VS Code (should be an equivalent in IntelliJ) which provides lots of hints for these problems.

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit ba7bd19
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/6540f5a69f1fa2000846897e

@bentsherman
Copy link
Member Author

See also, the original issue provides a test script to reproduce the error and confirm that this PR fixes it.

@pditommaso pditommaso merged commit fe5bea9 into master Oct 31, 2023
@pditommaso pditommaso deleted the 4360-fix-nxf-home-spaces branch October 31, 2023 12:54
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.

Unexpected behaviour when NXF_HOME contains a space character
2 participants