Artifacts Associated With Ticket 224021
Ticket change [4db3097d92] (rid 127094) by nobody on 2000-12-01 10:17:17:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
#------------------------------------------------------------------------------ # File: exec_test.tcl #------------------------------------------------------------------------------ # simple test proc to show the behaviour of exec and its search path on windows NT # # 1. Copy the script to some directory e.g. C:\My Documents # add a program e.g. echo.exe # # 2: observe, that the function works as expected. All test cases are successful # # 3. copy the script and your program under c:\Program Files # # 4. see that the script fails in CASE1 and CASE2!! # ############################################################################### # define a program which is located in the same directory as this script set prog echo # show the console console show # make sure the search path is set set env(PATH) "$env(PATH);[pwd]" ##----------------------------------------------------------------------------- ## Begin: test case find the program through search path ##----------------------------------------------------------------------------- if {[catch {set out [exec $prog "CASE1: found the program"]} res]} { puts "CASE1: ERROR: $res" puts "ENV: $env(PATH)" } else { puts $out } if {[catch {set out [exec $prog.exe "CASE2: found the program"]} res]} { puts "CASE2: ERROR: $res" puts "ENV: $env(PATH)" } else { puts $out } if {[catch {set out [exec [pwd]/prog.exe "CASE3: found the program"]} res]} { puts "CASE3: ERROR: $res" } else { puts $out } - foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "62. (unused)"
- title initialized to:
search path of exec command under C:\Program Files
- type initialized to: "Bug"
Ticket change [946a8500ab] (rid 105979) by dkf on 2001-02-01 03:56:39:
- subsystem changed to: "60. NRE and coroutines"
Ticket change [c9e49c126e] (rid 122362) by hobbs on 2001-03-28 08:50:54:
- closedate changed to: "2001-03-28T01:50:54"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 I cannot repeat this in the simpler case with tclsh and an echo.bat that simply says: ---8<---8<--- @echo off echo here we are %* ---8<---8<--- Note the above program has some errors (like the calling of prog in case 3). There may have been other interactions which caused the failure (or a better example is needed).
- login: "hobbs"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [9da0ee3c3e] (rid 96340) by dgp on 2001-03-28 13:53:42:
- closedate changed to: "2001-03-28T06:53:42"
- closer changed to: "dgp"
- resolution changed to: "Works For Me"
Ticket change [0bd530caae] (rid 114064) by dgp on 2001-04-05 08:20:11:
- closedate changed to: "2001-04-05T01:20:11"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"