[pass] Output from pass generate should go to stderr

Kjetil Torgrim Homme kjetil.homme at redpill-linpro.com
Mon Sep 14 12:43:51 CEST 2015


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150914/abe1d93d/attachment.asc>


More information about the Password-Store mailing list