[X-Unix] A Test Problem

Randy Beaudreault maccult at gmail.com
Fri Oct 21 19:05:25 PDT 2005


>At 16:07 -0700 10/21/05, Randy Beaudreault wrote:
>>I have a problem with test in that when I try the following,
>>	[ -z "$SSH_CLIENT" ] && source $HOME/.ssh-agent
>
>>  I am using tcsh here as my shell.
>
>if ($?DOUG) echo $DOUG
>
>Is what I use for tcsh.  I think the [ (space) test conditions 
>(space) ] is a bash convention. The [ would only work in tcsh 
>because it is linked as a file name to the tool text in /bin/

Thanks that did it.  I had to wonder if it was a shell thing.  With 
Doug's help, I found the relevant sections of the manpage to confirm 
the change:
	if ($?SSH_CLIENT) source $HOME/.ssh-agent
-- 
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