unary operator expected

2005-05-03 Thread Chris Burchell
Hello: I'm working with a script written for Linux that has the following lines: # Check that networking is up. [ ${NETWORKING} = no ] exit 0 Everything else in the script works okay, but this one bombs with the following error: line 35: [: =: unary operator expected Can anyone help

Re: unary operator expected

2005-05-03 Thread Clifton Royston
On Tue, May 03, 2005 at 05:13:47PM -0600, Chris Burchell wrote: I'm working with a script written for Linux that has the following lines: # Check that networking is up. [ ${NETWORKING} = no ] exit 0 I don't think it's a Linux/BSD issue. This line won't work in sh if NETWORKING is unset.

Re: unary operator expected

2005-05-03 Thread Chuck Robey
Clifton Royston wrote: On Tue, May 03, 2005 at 05:13:47PM -0600, Chris Burchell wrote: I'm working with a script written for Linux that has the following lines: # Check that networking is up. [ ${NETWORKING} = no ] exit 0 I don't think it's a Linux/BSD issue. This line won't work in sh if