Commit c1357b87 authored by JasonTashtego's avatar JasonTashtego
Browse files

cleanup get working dir on windows: "echo /c %CD%" -> "/c cd "

parent 0a7471a0
......@@ -50,7 +50,7 @@ for {set ii 0} {$ii < 10} {incr ii} {
proc get_pwd {} {
if {$::tcl_platform(platform) eq "windows"} {
return [string map [list \\ /] \
[string trim [exec -- $::env(ComSpec) /c echo %CD%]]]
[string trim [exec -- $::env(ComSpec) /c cd ]]]
} else {
return [pwd]
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment