-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Error: "WITH-EDITOR:: -c: line 0: unexpected EOF while looking for matching `'' #40
Comments
Just in case, try with |
|
I have the same issue. I didn't figure out the root cause. The with-editor package has worked before with password-store.el. However, now there may be some kind of quotation issue. As a workaround I downgraded password-store.el to the commit before the with-editor support. Specifically, I reverted to commit 38ec1c72e29c872ec0cdde82f75490640d4019bf. |
I have exactly the same problem. |
I believe that |
The issue arrived with with-editor commit 99d3278. You can reproduce with this script in /tmp/pass #!/usr/bin/env bash
${EDITOR} /home/cassou/.bashrc and this form: |
You have to use: #!/usr/bin/env bash
eval "${EDITOR}" /home/cassou/.bashrc
This commit didn't break anything by itself but because it removes a code-path that was previously used in most cases it causes another code-path to be used - and that exhibits this issue. But as I said, I believe the issue is that - like your script - many tools do not properly deal with spaces and/or quotes in |
Is there any workaround we could have in |
I could revert 99d3278 or add an option so that users could choose the defect that bothers them less. It would be best though if |
I've submitted a patch for password-store to use eval. |
I'm getting the following error in the
*Async Shell Command*
buffer with version ee39f23 of with-editor when runing(with-editor-async-shell-command "pass edit foobar")
. (pass command is from https://www.passwordstore.org/).The following also appears in the
*Messages*
buffer.If I checkout the commit before 99d3278, the same command works.
I am running GNU Emacs 26.0.60 on macOS.
The text was updated successfully, but these errors were encountered: