I set the pinentry program to a strace of pinentry-tty and got this: write(1, "Please enter the passphrase to u"..., 207) = 207 ioctl(0, TCGETS, 0x7fff61ea78c0) = -1 ENOTTY (Inappropriate ioctl for device) write(2, "cbreak failure, exiting\n", 24cbreak failure, exiting ) = 24
So it looks like it tries to treat stdin directly as a terminal, which obviously fails -- it's an anonymous pipe. pinentry should probably test stdin before it assumes it's a terminal, then either crash with a helpful message or do the thing gpg 1 did for pipelines. -- David Buckley

