noninteractive "pass insert" fails

Ernesto Alfonso erjoalgo at
Fri Jul 27 16:32:25 CEST 2018


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?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Password-Store mailing list