functions (SetupMethods): "[!" in shell pattern is better than "[^"

This commit is contained in:
Alexey Tourbin 2007-09-24 03:14:24 +04:00
parent 5844214067
commit fddaf81544

View File

@ -69,7 +69,7 @@ SetupMethods()
local m= outm="$allm"
for m in $(IFS="$IFS,"; echo '' $inm); do
case "$m" in
*[^0-9A-Za-z_-]*)
*[!0-9A-Za-z_-]*)
Fatal "invalid $suffix method name $m"
;;
yes|auto|all)