I have a problem:
the auto_execok command doesn’t work on Cygwin platform as expected.
It cannot find anything from your PATH enviroment variable, as
info body auto_execok
"...
foreach dir [split $path {;}] {
"
It thinks by default that ; is right separator, but Cygwin uses :!
How to elegantly overcome this problem?
I don’t want to change PATH variable as other programs/scripts could correctly use : as it should be for Cygwin.
We can use a mix of
set ar [info args auto_execok],set bd [info body auto_execok],some regsub on body with
set cygdir [exec cygpath -a $wdir]andeval proc auto_exeok {$ar} {$bd}to obtain needed result.However, for the moment, I’m not yet ready with the complete solution.