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

Allow whitespace in tee command paths #4619

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

malmeloo
Copy link

What are the reasons/motivation for this change?

Currently, tee -o "test file" creates a file literally named "test file". This essentially makes it impossible to indicate files/paths that include whitespace without adding the literal quotes.

Explain how this is achieved.

Uses void rewrite_filename(std::string &filename) to rewrite the path. As a nice side effect, ~/tilde paths are now expanded as well.

If applicable, please suggest to reviewers how they can test the change.

Just try tee -o "test file" before and after.

@malmeloo
Copy link
Author

Not entirely sure why that one job is failing, but it seems unrelated to my changes?

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.

1 participant