Example if I execute [gdbm_open test.gdbm w] (assuming test.gdbm already exists) in the default interpretor it words but if I execute:
interp create foo
foo eval
I get the error:
Error: invalid command name “gdbm_open”
Also, when I execute [info global] in foo I get:
tcl_version tcl_interactive auto_oldpath errorCode auto_path errorInfo auto_index env tcl_pkgPath tcl_patchLevel tcl_libPath tcl_platform tcl_library
Notice there are no hci globals present.
It does not appear that interp inherits the global environment from the parent. I’m hoping someone has tried successfully to use this command in hcitcl and can tell me what needs to be replicated to have all commands work.
Or, can someone form cloverleaf identify what we might need to run in a child interpreter that is run when hcitcl is started.
Thanks,
John Mercogliano
Sentara Healthcare
Hampton Roads, VA