From tclkit-lite, the second sourcing of a starkit gives an error:
% source sdx % source sdx couldn't read file "sdx": no such file or directory
I poked around in mkclvfs.tcl a bit and the "open" proc is getting passed file="" on the second call to [source sdx]. I'm not familiar with vfs drivers, but I guess the empty string is supposed to mean the mount point? On the first source call, there is no problem because mkclvfs.tcl doesn't get called because the starkit hasn't been mounted yet.
The fix for this could be to return [open $mountpoint] when an empty string for the file argument is encountered. This error did not occur in a standard tclkit. I didn't look in mk4vfs to see why it doesn't have the same problem.
It may sound seem far-fetched to want to be able to source a starkit twice, but I actually tripped into this when I sourced a starkit in a main interp and then again in a slave interp. There's probably an easy workaround for this, but it would be nice if it worked.
- 2007-12-07 btheado
Created
- 2008-02-24 jcw
Good catch. Best way forward is perhaps to avoid second-source (check existence of some var/proc?). I'll revisit this when I get to a new version of Tclkit Lite, which may be a while off.
- 2008-02-24 jcw
(Changed: stat)
