<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 16/01/2011, at 11:56 AM, Cameron Kerr wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 16/01/2011, at 5:22 AM, bluethundr wrote:<br><font class="Apple-style-span" color="#006312"><font class="Apple-style-span" color="#144FAE"><br></font></font><blockquote type="cite">I have this line in my .bashrc file<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">$(keychain --eval --quick --quiet private_key1 private_key2 private_key3)<br></blockquote><br>Should not this go into your ~/.bash_profile?<br><br>(disclaimer: I've not used the 'keychain' program before)<br></div></blockquote></div><br><div><br></div><div>According to the docs for keychain, it should look something more like the following:</div><div><br></div><div>eval `keychain --eval --agents ssh id_dsa`</div><div><br></div><div>The 'eval' at the start is probably more important than you think... I noted myself that the following are quite different in a bash script I was working on:</div><div><br></div><div>"$@"</div><div><br></div><div>eval "$@"</div><div><br></div><div>(only the latter works, the former ended up not doing anything in a #!/bin/bash script)</div><div><br></div><div><a href="https://github.com/funtoo/keychain">https://github.com/funtoo/keychain</a>  and <a href="http://www.funtoo.org/en/security/keychain/intro/">http://www.funtoo.org/en/security/keychain/intro/</a>  for more information regarding keychain. You might also like adding    || exit 1   or similar to the 'eval' call, for debugging, as shown in the docs.</div><div><br></div></body></html>