unexpected operator .sh error

2010-05-31 Thread Aiza
Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: whats wrong or =: ___ freebsd-questions@freebsd.org

Re: unexpected operator .sh error

2010-05-31 Thread Chris Hill
On Tue, 1 Jun 2010, Aiza wrote: Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: whats wrong or =: I'd guess that what you added includes something

Re: unexpected operator .sh error

2010-05-31 Thread Aiza
Chris Hill wrote: On Tue, 1 Jun 2010, Aiza wrote: Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: whats wrong or =: I'd guess that what you added

Re: unexpected operator .sh error

2010-05-31 Thread Sahil Tandon
On Tue, 01 Jun 2010, Aiza wrote: Chris Hill wrote: The open-square-bracket, [, is another name for test. IIRC the equal sign is not valid in that context. Using '=' within test(1) brackets should be fine. Can you post the 'before' and 'after' versions of that part of your script? It would

Re: unexpected operator .sh error

2010-05-31 Thread Charlie Kester
On Mon 31 May 2010 at 19:58:41 PDT Aiza wrote: Chris Hill wrote: On Tue, 1 Jun 2010, Aiza wrote: Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: