mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-21 23:11:05 +08:00
merged, re-fixed windows get_pwd.
This commit is contained in:
2
testdata/tcl/crash5.test
vendored
2
testdata/tcl/crash5.test
vendored
@@ -56,7 +56,7 @@ for {set ii 0} {$ii < 10} {incr ii} {
|
|||||||
set comSpec {C:\Windows\system32\cmd.exe}
|
set comSpec {C:\Windows\system32\cmd.exe}
|
||||||
}
|
}
|
||||||
return [string map [list \\ /] \
|
return [string map [list \\ /] \
|
||||||
[string trim [exec -- $comSpec /c echo %CD%]]]
|
[string trim [exec -- $comSpec /c echo cd ]]]
|
||||||
} else {
|
} else {
|
||||||
return [pwd]
|
return [pwd]
|
||||||
}
|
}
|
||||||
|
2
testdata/tcl/tester.tcl
vendored
2
testdata/tcl/tester.tcl
vendored
@@ -181,7 +181,7 @@ proc get_pwd {} {
|
|||||||
set comSpec {C:\Windows\system32\cmd.exe}
|
set comSpec {C:\Windows\system32\cmd.exe}
|
||||||
}
|
}
|
||||||
return [string map [list \\ /] \
|
return [string map [list \\ /] \
|
||||||
[string trim [exec -- $comSpec /c echo %CD%]]]
|
[string trim [exec -- $comSpec /c echo cd ]]]
|
||||||
} else {
|
} else {
|
||||||
return [pwd]
|
return [pwd]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user