title: using pinentry-tty in a bash script (like read)
body: <p>Is there a way to use pinentry-tty directly in a bashscript? E.G. as a more secure replacement for 'read'. I was thinking of something like this:</p>
  
  <pre><code>local pass=$(pinentry-tty);
  </code></pre>
  
  <p>This allows me to enter several lines, but nothing gets saved to the variable. </p>