<div dir="ltr">Referring back to the testing thread, I figured out a couple behaviors of 'pass insert' that were confusing me. I suggest these are both bugs.<div><br></div><div>1) "echo foo | pass insert my-pass" fails, but still creates an empty file. See appended example 1.</div>

<div><br></div><div>2) "echo foo | pass -e insert my-pass" returns 1 if my-pass exists but is otherwise silent. See appended example 2.</div><div><br></div><div>Von</div><div><br></div><div><br></div><div><br></div>

<div>Example 1:</div><div><br></div><div><div>% pass show my-pass</div><div>my-pass is not in the password store.</div><div>Status: 1</div><div>% echo foo | pass insert my-pass<br></div><div><br></div><div><br></div><div>

Error: the entered passwords do not match.</div><div><br></div><div><br></div><div>% pass show my-pass<br></div><div><no output, no error></div><div><div>% ls -l /tmp/store/my-pass.gpg</div><div>-rw-------  1 von  wheel  323 Apr 20 14:16 /tmp/store/my-pass.gpg</div>

<div><br></div></div><div><br></div><div>Example 2:</div><div><br></div><div><div>% rm /tmp/store/my-pass.gpg</div><div>remove /tmp/store/my-pass.gpg? y</div><div>% echo foo | pass insert -e my-pass<br></div><div>% echo foobar | pass insert -e my-pass<br>

</div><div>Status: 1</div><div>% pass show my-pass<br></div><div>foo</div><div><br></div></div><div><br></div></div></div>