Index: openacs-4/packages/acs-tcl/tcl/00-icanuse-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/00-icanuse-procs.tcl,v diff -u -r1.1.2.19 -r1.1.2.20 --- openacs-4/packages/acs-tcl/tcl/00-icanuse-procs.tcl 9 Dec 2020 14:36:23 -0000 1.1.2.19 +++ openacs-4/packages/acs-tcl/tcl/00-icanuse-procs.tcl 14 Jan 2021 14:17:59 -0000 1.1.2.20 @@ -57,8 +57,14 @@ submethod is available. } { - catch [list $cmd ""] errorMsg - return [expr {" $subcommand" in [split $errorMsg ","]}] + set has_p true + if {[catch [list $cmd $subcommand] errorMsg]} { + if {[regexp {^unknown or ambiguous subcommand .*$} $errorMsg]} { + set has_p false + } + } + + return $has_p } ad_proc -private cmd_error_contains {cmd subcommand} {