On Fri, 10 Oct 2014, David Carlos Manuelda wrote: > I am trying to set GPG_AGENT_INFO as a global variable which is already > defined by (I guess gnome-keyring) > > I have an script which only executes once in my xfce-session, like: > > set -xU GPG_AGENT_INFO (gpg-agent -v --daemon | egrep -o > "=(.*);[[:space:]]" | sed -e 's/=//' | sed -e 's/;//') > > and also even tried > > set -xg GPG_AGENT_INFO (gpg-agent -v --daemon | egrep -o > "=(.*);[[:space:]]" | sed -e 's/=//' | sed -e 's/;//') > > But does not matter, everytime I open a new fish session, I get > something like: > > echo $GPG_AGENT_INFO > /run/user/1001/keyring/gpg 0 1 > > instead of something like > /tmp/gpg-1JaGYx/S.gpg-agent:2333:1
Do you get the correct output in `env | grep GPG_AGENT`? fish will split colon-separated variables into arrays when it inherits them (this is the wrong behaviour and is fixed in the version under development), but it reassembles them with colons before exporting them to child processes. Unless you need to pass the $GPG_AGENT_INFO variable as a command-line flag, I don't think the splitting should be bothering you. David Adam zanc...@ucc.gu.uwa.edu.au ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users