--- /usr/share/php-select/libapache.sh 2006-01-16 17:35:28.000000000 +0100 +++ /usr/share/php-select/libapache.sh 2008-02-11 11:51:30.000000000 +0100 @@ -36,7 +36,7 @@ chooseApacheVersion () { # convert the PHP version to upper-case - chosen=$( echo $1 | tr [a-z] [A-Z] ) + chosen=$( echo $1 | tr '[[:lower:]]' '[[:upper:]]' ) # make a list of the mod_php versions available choices=( $(learnApacheMods $G_APACHE_MOD_DIR) ) @@ -174,7 +174,7 @@ # if we get here, then apache is configured for a mod_php ... # is it one that is installed? - chosen="$( echo $chosen | tr [A-Z] [a-z] )" + chosen="$( echo $chosen | '[[:lower:]]' '[[:upper:]]' )" for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do if [[ ${choices[$i]} == $chosen ]] ; then echo $chosen @@ -209,7 +209,7 @@ # if we get here, then apache is configured for a mod_php ... # is it one that is installed? - chosen="$( echo $chosen | tr [A-Z] [a-z] )" + chosen="$( echo $chosen | '[[:lower:]]' '[[:upper:]]' )" for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do if [[ ${choices[$i]} == $chosen ]] ; then # we have one installed; but is it what we want?