Updating password does not preserve extra info

Chris Bero bigbero at gmail.com
Wed Mar 29 18:28:17 CEST 2017


Hi Alex,

I think you're looking for the --in-place / -i flag for pass generate.

If --in-place or -i is specified, do not interactively prompt, and only
> replace the first line of the password file with the new generated
> password, keeping the remainder of the file intact.
>

Chris Bero

On Wed, Mar 29, 2017 at 11:22 AM, Alex Thorne <lexiconifernelius at gmail.com>
wrote:

> As suggested in the docs, I add any extra info on additional lines
> separated from the top (password) line by a blank line.
>
> If I run `pass generate` to replace an existing password, it replaces the
> whole file with the newly generated password. I think a more desirable
> behaviour would be that only the top line containing the password is
> replaced, and any additional information on subsequent lines is preserved.
>
> Let me know what you think. I'm not familiar with the source code so have
> not submitted a patch but could potentially investigate this in the future.
>
> Regards,
> Alex
>
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20170329/1de68a79/attachment.html>


More information about the Password-Store mailing list