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: ensure prepare_command only appends one -c arguemnt to shell #155

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

anthr76
Copy link
Contributor

@anthr76 anthr76 commented Sep 25, 2024

Fish errors out on multiple -c invocations where zsh, bash don't.

I originally had a check but instead dropped it in app.rs. I very much don't know rust so feel free to adapt as needed :)

Shout out to @onedr0p for figuring out how this was broke and finding the redundant appends <3

Fish errors out on multiple `-c` invocations where zsh, bash don't.

It seems somehow multiple are being sent to shell. To workaround this there's a check to only add if it's not present.

Signed-off-by: Anthony Rabbito <[email protected]>
@onedr0p
Copy link
Contributor

onedr0p commented Sep 25, 2024

Fixes #154

@sachaos
Copy link
Owner

sachaos commented Sep 26, 2024

@anthr76 Thank you for the PR. LGTM!
@onedr0p Thank you for the review & investigation!

@sachaos sachaos merged commit 553910c into sachaos:master Sep 26, 2024
4 checks passed
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.

3 participants