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

Issue #138: Using shlex.split instead str.split #185

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

NevroHelios
Copy link
Contributor

I have used the shlex.split function which correctly handles quoted strings, ensuring that the entire passphrase is treated as a single argument.

@chookity-pokk
Copy link
Collaborator

chookity-pokk commented Dec 4, 2024

@NevroHelios Thanks for this PR! Though quickly looking at the shlex documentation we probably want it to have posix=False in the event someone is using a non-POSIX shell like Fish. Thoughts?

@NevroHelios
Copy link
Contributor Author

Yes, setting posix=False when using shlex.split can help ensure compatibility with non-POSIX shells like Fish. So should I create a new pull request?

@chookity-pokk
Copy link
Collaborator

Yes, setting posix=False when using shlex.split can help ensure compatibility with non-POSIX shells like Fish. So should I create a new pull request?

No need to make a new PR, just push a commit to this one and it should be good to go.

@NevroHelios
Copy link
Contributor Author

@chookity-pokk , I made the change and updated the PR.

@chookity-pokk chookity-pokk merged commit 21fb28d into matrix-org:master Dec 5, 2024
4 checks passed
@chookity-pokk
Copy link
Collaborator

@NevroHelios Thanks for the PR! It has been merged now!

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