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

git interpreter command splits args unexpectidly #204

Open
haunab-ornl opened this issue Jul 14, 2023 · 2 comments
Open

git interpreter command splits args unexpectidly #204

haunab-ornl opened this issue Jul 14, 2023 · 2 comments

Comments

@haunab-ornl
Copy link

When using the interpreter-exclusive git command, quoted args are split on spaces, instead of being preserved.

Expectation:
git commit -am "chore: update example password"
(expands to ["git" "commit" "-am" "chore: update example password"])
[some_branch a1b2c3d] chore: Update Example Password
base/example/password +- 1

Reality:
git commit -am "chore: update example password"
(expands to ["git" "commit" "-am" "chore:" "update" "example" "password"])
fatal: paths 'update ...' with -a does not make sense

@ginsburgnm
Copy link
Collaborator

yeah, this is a known problem I never got around to. I believe it's an issue with Cmd it's worth looking into a fix

@carljbai
Copy link
Contributor

carljbai commented Aug 7, 2023

shlex may work but it would need some thought.

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

No branches or pull requests

3 participants