bind update error?
D. Hugh Redelmeier
hugh at mimosa.com
Tue May 29 04:32:55 UTC 2007
| From: Kevin J. Cummings <cummings at kjchome.homeip.net>
| > 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
More information about the fedora-list
mailing list