Updating password does not preserve extra info

Alex Thorne lexiconifernelius at gmail.com
Wed Mar 29 19:30:23 CEST 2017


Thanks, that's what I wanted. Turns out Ubuntu is shipping a very outdated
version of Pass which is why I didn't find this in the man pages.

Alex

On Wed, 29 Mar 2017 at 17:28 Chris Bero <bigbero at gmail.com> wrote:

> 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/4cc1dddd/attachment.html>


More information about the Password-Store mailing list