I am ok with that approach as well  .. if pass printed a "failed" message when 
using stdin and no passwords are created... it doesn't because the 'read' calls 
take over the output and squash it... perhaps echo to STDERR vs STDOUT?


branson matheson
[email protected]



> On Feb 5, 2020, at 04:07, Amir Yalon <[email protected]> wrote:
> 
> Minor correction: either one of -e and -m would work, but in most 
> non-interactive cases, -m is what you want.
> 
> I agree that it makes sense to prompt the user for a repeat only if [[ -t 0 
> ]], but then it raises the question of bug-for-bug backwards compatibility 
> (i.e. if existing scripts in the wild have come to expect the second prompt). 
> So, in the patch, maybe just issue a warning when [[ ! -t 0 ]] but proceed as 
> usual.
> 
> _______________________________________________
> Password-Store mailing list
> [email protected] <mailto:[email protected]>
> https://lists.zx2c4.com/mailman/listinfo/password-store 
> <https://lists.zx2c4.com/mailman/listinfo/password-store>
_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to