Re: bind update error?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



| 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux