On 09/14/2015 10:06 AM, Lie Ryan wrote: > Currently, the output of `pass generate` cannot be piped into another > command that expects a password because it contains git output and other > interactive outputs. For example: > > openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 > -aes-256-cbc -pass file:<(pass example.com.key 30 2>/dev/null) -out > example.com.key > > Fails because pass outputs the git commit messages into the named pipe > passed to -pass. > > The attachment is rudimentary attempt to send most output from generate > to stderr except the password itself.
I don't like that stderr contains output which aren't errors, so -1 from me. > Maybe a better implementation is to have an explicit --quiet option? that sounds like a good idea, yes. -- Kjetil T. Homme Redpill Linpro - Changing the game
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
