| From: Kevin J. Cummings <cummings@xxxxxxxxxxxxxxxxxx> | > The shell command "[" is supposed to be another name for "expr". | | No, "[" is another name for "test" See the CONDITIONAL EXPRESSIONS | section of "man bash" Oops -- you are right. | > Perhaps the correct test is | > if [ "$ENABLE_ZONE_WRITE" : '[yY1]*' ]; then | > ^ ^ ^ That would be if expr "$ENABLE_ZONE_WRITE" : '[yY1]*' ; then Or use a case statement to replace the whole if construct: case "$ENABLE_ZONE_WRITE" in [yY1]*) return 0 ;; esac