<@U016EM8L91B> trying to use the built in tcl `clo...
# magic
m
@Tim Edwards trying to use the built in tcl
clock
command in a magic script but get
invalid command name "clock"
from the parser. If I run this, I get the error
invalid command name "clock"
Copy code
echo "clock seconds" | magic -dnull -noc -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc
If I run this, and type
clock seconds
in the console, it returns a value
Copy code
magic -dnull -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc
Is there somewhere I can register
clock
as a know command (without having to recompile)?
t
@Mitch Bailey: Because the traditional shorthand "clock" for "clockwise" in magic conflicts with Tcl's "clock", the "clock" command was renamed by the startup script to "orig_clock".
👍 1