[X-Unix] A Test Problem

Randy Beaudreault maccult at gmail.com
Fri Oct 21 16:07:08 PDT 2005


I have a problem with test in that when I try the following,
	[ -z "$SSH_CLIENT" ] && source $HOME/.ssh-agent
I get an Undefined variable errer.  I know that SSH_CLIENT is not 
defined.  What I want to do is test if SSH_CLIENT is defined and then 
run the second half of the command.  Can I do this?  I am using tcsh 
here as my shell.
-- 
Randy

OS X - UNIX for the rest of us
NetBSD - It's Explosive!
Marten - Prograph for OS X.  Yes!


More information about the X-Unix mailing list