Don't know if this should be considered a bug after all, but adding --batch does the trick:
gpg --quiet --no-use-agent --batch --sign --passphrase XXX -u "YYY" --output SIG FILE &> /dev/null -- gpg spams the terminal with passphrase message https://bugs.launchpad.net/bugs/190294 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs