Bryan Kadzban wrote:
Or should it be:

if [ $CUR_LENGTH -eq 0 ]; then

instead, to do a numeric comparison?  (Either with or without the
quotes.  It shouldn't matter unless $CUR_LENGTH might be unset.)

I was thinking the same thing.

(OTOH, is that a bashism too? I'd hope not, but I don't know for sure.)

http://www.opengroup.org/onlinepubs/009695399/utilities/test.html suggests it's standardised, so as long as the shell you're using adheres to the SUSV3 standard that construct should work just fine.


Regards,

Matt.

--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to