tcl catch syntax

Rainer Müller raimue at macports.org
Mon May 18 16:08:34 PDT 2009


On 2009-05-19 00:48, Darren Weber wrote:
> DEBUG: Executing proc-post-org.macports.destroot-destroot-2
> Error: Target org.macports.destroot returned: wrong # args: should be
> "catch command ?varName?"
> Warning: the following items did not execute (for InsightToolkit):
> org.macports.destroot
> Error: Status 1 encountered during processing.
> 
> 
> Here in the tcl 8.5 documentation, we have a different syntax that
> allows the "option" variable:
> http://www.tcl.tk/man/tcl8.5/TclCmd/catch.htm

MacPorts uses Tcl 8.4 as provided by Mac OS X. You are probably reading
8.5 documentation which has been installed by the MacPorts tcl port.

You can use man to view the man page supplied by the system by using the
full path:
  man /usr/share/man/mann/catch.ntcl.gz

Rainer


More information about the macports-dev mailing list