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

Fix directories containing spaces #73

Merged
merged 5 commits into from
Jan 29, 2024
Merged

Fix directories containing spaces #73

merged 5 commits into from
Jan 29, 2024

Conversation

aarmaane
Copy link
Contributor

@aarmaane aarmaane commented Jan 29, 2024

Fixes #72. This could have also been fixed by adding quotations around the path or replacing spaces with their escape character versions. But this seems best since there's no need for any special shell syntax. It's just running a file from a path as-is.

Unintended side effect: subprocess.run will now throw OSError exceptions that are much more descriptive than the previous error codes (i.e. Missing a shebang will throw errno.ENOEXEC and a missing file will throw FileNotFoundError).

Copy link
Contributor

@awdeorio awdeorio left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution!

@awdeorio awdeorio merged commit 8cf2165 into eecs485staff:develop Jan 29, 2024
1 check failed
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.

Madoop does not work with directories in file path containing spaces
2 participants