try quoting var refs, eg try changing each
if [ $foo -op $bar ];
to
if [ "$foo" -op "$bar" ];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20131112/b83f5b47/attachment.html>