[pocket-linux] Script more 8.3.1

David Horton dhorton at speakeasy.net
Sun Mar 20 12:17:45 CST 2005


mlij at globo.com wrote:
> If a run the script more like is  8.3.1, I have the message:
> 
> /bin/more:line 37:let - : syntax error: operand expected (error token is
> "-".
> 
> The line 37 is:
> 
> let LINE-COUNTER=$LINE_COUNTER - 1
> 
> Now, I do not have error because the line above in my script is:
> 
> let LINE-COUNTER=$LINE_COUNTER 1
> 
> There is no more the "-"
> 

The problem seems to be with the spaces in "$LINE_COUNTER - 1".  If you 
change it to "$LINE_COUNTER-1", without the spaces, it works as it 
should.  So line 37 should be as follows:

let LINE_COUNTER=$LINE_COUNTER-1

I'll put a note in the errata and fix this in the next revision.

Dave




More information about the Pocket-Linux mailing list