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

Quote arguments in shell scripts #359

Merged
merged 8 commits into from
Feb 26, 2021

Conversation

sebschmi
Copy link
Contributor

(Same as #348 which accidentally got polluted)

When passing paths with certain characters, e.g. spaces, quotes, braces or similar to flye, its calls to samtools and minimap2 fail.

That is because these calls go via a shell that interprets some characters in its own way. By adding single quotes around all paths when forwarding to the shell, the shell does not alter the paths but passes them correctly to the underlying program.

This pull request does exactly that.

It might be useful to squash the commits of this pull request when merging, as there are quite many with very small semantic contributions.

@mikolmogorov mikolmogorov merged commit e48603f into mikolmogorov:flye Feb 26, 2021
@mikolmogorov
Copy link
Owner

Great suggestion, much better than my original "disallow spaces in file names" :) Merged, thanks!

@sebschmi sebschmi deleted the pull_request branch March 1, 2021 05:13
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