I’m open to correction on this point but I believe that when you exec TCL creates a subprocess to contain the running program. I assume this means a shell. The file command executes directly from TCL so it should be faster. If I have time I may test it…
Cheers,