Closed rvernica closed 6 years ago
That's odd, it seems to add the newline on my machine. Perhaps it depends on the PowerShell version?
Mind showing the contents of your $PSVersionTable
?
I think you are right. Not sure how I ended up without a new-line. Never mind.
This is not necessarily a bug, but it might be worth having it somewhere.
The instructions for initializing a password store in Windows contain:
This creates a
.gpg-id
without a new-line at the end of the file.This works fine in Windows, but once the password repository is cloned on Linux,
pass
is not happy about the missing new-line. The passwords can be decrypted fine, but when adding a new password you get:You can debug this by using
bash -x pass add Foo
and you will see that the GPG command executed is:This is wrong as it is missing the
-r myemail@example.com
argument. The correct line is:So, it seems that the
pass
script on Linux is not picking up the email address from the non new-line terminated.gpg-id
file. Once you add a new-line at the end of.gpg-id
everyone is happy.