sysctl ???

Vincent Habchi vince at macports.org
Wed Apr 17 02:49:36 PDT 2013


Hi there,

is Macports overriding the standard Tcl ‘sysctl’ call?
I’m getting strange outputs:

Macmini > tclsh
% catch {sysctl -n hw.machine} result
x86_64
0
%

but this code in Macports:

    if {![catch {sysctl hw.machine} result]} {
        set native_arch ${result}
        puts ${result}
    }

reports ‘32767’

How come?

Vincent



More information about the macports-dev mailing list