On Thu, Aug 15, 2002 at 11:36:23AM -0700, John Koenig wrote: > >On Thu, Aug 15, 2002 at 12:49:04PM -0400, Jason Greenberg wrote: > >> Does anyone know what could cause this output? I am trying to debug my > >> setup with a PowerVault 128T / Linux Redhat 7.3 > >> > >> > >> bash-2.05a$ /usr/lib/amanda/chg-zd-mtx -info > >> /usr/lib/amanda/chg-zd-mtx: [: : integer expression expected > >> /usr/lib/amanda/chg-zd-mtx: [: -lt: unary operator expected > >> 16 1 1 > > > I'll take a chance of clarifying instead of muddying this issue.... > From what I have been learning from some FINE people on this list > about shell scripting is... that the error above is likely caused by > a string of length zero as one of the variables in the test.
This is likely true, though the first one "integer expression expected" could be caused by a word where a number is expected or the empty string. > If the > source was written with by prepending 'x' on both variables such that > the value of the variables would be concatenated with the 'x', the > broken test would not likely occur. I think this explanation is > accurate but it needs review. As both cases above are expecting integers putting an "x" into a currently empty integer field would change the error, not correct it. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road (609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
