It's expecting just 1 argument to the command but you are putting two in 
there. Either run as ./harps roll
or change
if [ -z $@ ]
to
if [ -z $1 ]

This then says check for the first argument to not exist.

On Friday 15 September 2006 21:15, Christopher Howard wrote:
> Ok, the attachted script is what I'm running.  I don't understand why I
> get an error on line 20 in one mode but not the other.  Can anyone
> explain whats up?
>
> christopher at seehow:~/bin$ ~/bin/harps
> harps>roll stuff
> This command is under construction
> stuff
> harps>exit
> christopher at seehow:~/bin$ ~/bin/harps roll stuff
> /home/christopher/bin/harps: line 20: [: roll: binary operator expected
> This command is under construction
> stuff
> christopher at seehow:~/bin$

-------------------------------------------------------