Bug 52874 - keychain 2.2.0 and 2.3.0 doesn´t work with solaris in cshell
Bug#: 52874 Product:  Gentoo Hosted Projects Version: unspecified Platform: Sparc
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: keychain@gentoo.org Reported By: agustin@iuma.ulpgc.es
Component: Keychain
URL: 
Summary: keychain 2.2.0 and 2.3.0 doesn´t work with solaris in cshell
Keywords:  
Status Whiteboard: 
Opened: 2004-06-03 05:05 0000
Description:   Opened: 2004-06-03 05:05 0000
While keychain works fine in bourne shells with solaris, in cshell it doesn

------- Comment #1 From Agustín Quintana 2004-06-03 05:05:32 0000 -------
While keychain works fine in bourne shells with solaris, in cshell it doesn´t
run. It shows a problem with the "setenv" command.

Reproducible: Always
Steps to Reproduce:
1.keychain .ssh/id_dsa
2.
3.

Actual Results:  
With keychain 2.2.0
-------------------

KeyChain 2.2.0; http://www.gentoo.org/projects/keychain
Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL

 * Warning: Se ha realizado el lock
/usr/local/bin/keychain220: setenv: not found
/usr/local/bin/keychain220: setenv: not found
 * Initializing /home/users/usuario/.keychain/camws3-sh file...
 * Initializing /home/users/usuario/.keychain/camws3-csh file...
 * Starting ssh-agent
/usr/local/bin/keychain220: setenv: not found
/usr/local/bin/keychain220: setenv: not found
 * Adding        1 key(s)...
 * Could not open a connection to your authentication agent.

With keychain 2.3.0
-------------------

KeyChain 2.3.0; http://www.gentoo.org/projects/keychain
Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL

expr: syntax error
 * Initializing /home/users/usuario/.keychain/camws3-sh file...
 * Initializing /home/users/usuario/.keychain/camws3-csh file...
 * Starting ssh-agent
/usr/local/bin/keychain230: setenv: not found
/usr/local/bin/keychain230: setenv: not found
 * Adding        1 key(s)...
 * Could not open a connection to your authentication agent.

In both situations I obtain a machinename-csh file:

setenv  
setenv


Solaris 8 and 9 in sparc
sshd version OpenSSH_3.8p1

------- Comment #2 From Aron Griffis (RETIRED) 2004-06-03 09:03:10 0000 -------
Yowsers!  Would you mind running the script like this:

  % /bin/sh
  $ /bin/sh -x /usr/local/bin/keychain230 >keychain230.out 2>&1

then attach the output to this bug (i.e. "create an attachment", don't paste the file into a comment).  Note you will need to run bourne shell as I demonstrated above instead of running directly from csh so that you can redirect both stdout and stderr.  Thanks!

------- Comment #3 From Jerry Keefe 2004-06-03 14:17:39 0000 -------
Created an attachment (id=32616) [details]
FreeBSD 5.2.1 tcsh error output for keychain 2.3.0

-csh environment file not written completely

------- Comment #4 From Aron Griffis (RETIRED) 2004-06-03 16:20:24 0000 -------
Thanks Jerry.  I see the problem and have fixed it.  New version 2.3.1 at

http://dev.gentoo.org/~agriffis/keychain/

(You might need to reload the page)