Hi,

I need to generate a numeric pin but pass seems to only support a yes/no
special characters flag.

So I generate my own pin:

    PIN=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${LENGTH})

When I try to insert that into pass via standard in:

    pass insert ${NAME} <<< $PIN

I get exit status 1 with no error message, and no password is inserted.

- How can I insert a password non-interactively?
- Alternatively, how can I generate a numeric pin with no alpha characters?
- Should pass provide an error message when it fails?

Thanks,

Ernesto
_______________________________________________
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to