[NTLUG:Discuss] unary operator expected

George E. Lass George.Lass at osc.com
Mon Aug 28 10:16:07 CDT 2000


Jim Adams wrote:
> 
> Hello,
>         I have seen this on my system for a while now whenever I start and stop
> samba "/etc/rc.d/init.d/smb [: =: unary operator expected". All seems to be
> working fine but I was just curious as to what it is. It also shows up when the
> system is starting up.
> Thanks

Just a guess, but from the looks of things I'd say it has
to do with one of the tests that the smb file is "executing".
You have to careful evaluating some of these tests. For
example:

if test ${NETWORKING} = "no"
then
exit 0
fi

is condensed to:

[ ${NETWORKING} = "no" ] && exit 0

in my smb startup command.

George




More information about the Discuss mailing list