[Starkit] auto_execok and Starpacks
Joey Mukherjee
joey at swri.edu
Wed Jul 6 16:56:48 CEST 2005
I am creating a starpack and in this pack I use the function
auto_execok to see if programs are in the path. Normally this works
fine, unless the program in question is the program I am currently
running. This is strictly a starpack issue since it works normally
under wish or mktclapp.
Does anyone know why?
You can test this issue by creating a starpack from these two lines:
-- junk.tcl --
puts [auto_execok "junk"]
puts [auto_execok "ls"]
--------------
Wrap this in a starpack called "junk" and it will print a blank line
and then /bin/ls when run from anywhere in the path. Hopefully I am
doing something really wrong and easy to fix. I have tested this with
8.4.9 on Solaris and Mac.
Thanks!
Joey
More information about the Starkit
mailing list