GnuPG Shell Script - Refuses to read password GnuPG Shell Script - Refuses to read password shell shell

GnuPG Shell Script - Refuses to read password


This works:

gpg --no-use-agent --batch --passphrase-file pass.txt --output kkkk.tar.bz2  --decrypt kkk-data.tar.bz2.gpg


The --passphrase-file option seems to be broken / not honored. I had to use --passphrase-fd 0 instead, like so:

cat .password | gpg --passphrase-fd 0 --output foo --decrypt foo.gpg


Use option --no-use-agent. It won't prompt you using option --passphrase.