Hey all...
I recently decided to dip my big toe into shell scripting; never really having a need for until recently. I am working on a simple little script right now which seems to work fine, only it generates an error before continueing on to execute the whole script flawlessly:
:/home/sallow>testsrv -c -u sallow
/usr/local/bin/testsrv: [: !=: unary operator expected
The appearance of the error is the only indication of an issue, as I stated above, the script performs without any issues at all.
The only area in the code in which I use a 'not equals' is here:
if [ $USERNAME != $USR ] ; then
...
fi
but I have tested this block of code to make sure that it is doing its job and there are no performance issues.. ??
All in all, since the code works, I'm not overly concerned, but at the same time, I have such a hard time leaving anything alone til its perfect
Could anyone shed any light on the meaning of this error?
Thanks in advance,
Verbal