emacs: password-store doesnot use with-editor correctly

Konstantin Reich reich-cv at yandex.ru
Sun Oct 8 19:45:21 CEST 2017


Hi,

After this commit https://git.zx2c4.com/password-store/commit/?id=09cb7e1f7c85b0ed0d3c682fee833294050f2c3b 

password store doesnot work properly in emacs. For example if i want to edit an entry "Personal" i do:

(password-store-edit "Personal") and get  a buffer with:

"WITH-EDITOR:: 1: "WITH-EDITOR:: Syntax error: Unterminated quoted string
Password unchanged.

and in the message buffer i get:

EDITOR=sh\ -c\ \'echo\ \"WITH-EDITOR\:\ \$\$\ OPEN\ \$0\"\;\ sleep\ 604800\ \&\ sleep\=\$\!\;\ trap\ \"kill\ \$sleep\;\ exit\ 0\"\ USR1\;\ trap\ \"kill\ \$sleep\;\ exit\ 1\"\ USR2\;\ wait\ \$sleep\' /usr/bin/pass edit Personal: exited abnormally with code 1.

Exactly the same things happens if i use 

(with-editor-async-shell-command "/usr/bin/pass edit Personal")

is it the bug in "with-editor" package or "password-store" package?

Meanwhile, if i redefine back the function password-store-edit everything works normally again.

My emacs version is 26.0.60


More information about the Password-Store mailing list