The setclasspath.sh script contains some questionable syntax in several areas where the $os400 variable is tested. These errors lead to warnings from bash/sh if os400 is not set, and additionally mean that the functionality doesn't work as intended (i.e. the test of the os400 variable at one point assumes that it may have a null/non-null value, and at another assumes that it will always have a valid value. These changes add robustness by not assuming that os400 will always be set to a non-null value, and test it only against "true" when testing whether it is true. Patch is attached.
Created attachment 13014 [details] Patch to setclasspath.sh
OK, done on both the Tomcat 5.0 and 5.5 branches. Thank you for submitting this patch.