SQLite Forum

windows: tester.tcl question
Login
I had suggested just using the shell command, 'pwd', without realizing that it is not a built-in and only works for me because a pwd.exe is locally available.

However, I believe a fine resolution is to replace the offending line with:<code>
   string trim [exec -- $::env(ComSpec) /c CD ]
</code>, which works because the shell normally referred to by the ComSpec environment variable interprets a bare 'CD' command by outputting the current working directory. (IOW: delete the two '%' characters.)