Matt Emmerton matt at
Wed Jul 11 02:56:00 UTC 2007

> I have been having trouble getting gpg-agent to work. kgpg complained
> the agent not running.  I added this to my ~/.bashrc:
> GPG_TTY=`tty`
> export GPG_TTY
> This seems to have taken care of the problem but it only works when my
> shell is bash.  If my shell is tcsh, it doesn't work.  This is what I have
> my ~/.cshrc:
> setenv GPG_TTY tty
> Apparently this is wrong.  Any ideas as to what I can try?

I noticed that you're using backticks, so GPG_TTY gets set to the output of
the tty command - not the text "tty" itself.
Perhaps you want this?

setenv GPG_TTY `tty`

Matt Emmerton

More information about the freebsd-questions mailing list