Skip to content
Tcl Source Code History Of Ticket 224021ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 224021ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 224021ffffffffffffffffffffffffffffffffff

  1. Ticket change [4db3097d92] (rid 127094) by nobody on 2000-12-01 10:17:17:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      }
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "62. (unused)"
    10. title initialized to:
      search path of exec command under C:\Program Files 
      
    11. type initialized to: "Bug"
  2. Ticket change [946a8500ab] (rid 105979) by dkf on 2001-02-01 03:56:39:

    1. subsystem changed to: "60. NRE and coroutines"
  3. Ticket change [c9e49c126e] (rid 122362) by hobbs on 2001-03-28 08:50:54:

    1. closedate changed to: "2001-03-28T01:50:54"
    2. closer changed to: "hobbs"
    3. 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).
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "hobbs"
  4. Ticket change [9da0ee3c3e] (rid 96340) by dgp on 2001-03-28 13:53:42:

    1. closedate changed to: "2001-03-28T06:53:42"
    2. closer changed to: "dgp"
    3. resolution changed to: "Works For Me"
  5. Ticket change [0bd530caae] (rid 114064) by dgp on 2001-04-05 08:20:11:

    1. closedate changed to: "2001-04-05T01:20:11"
    2. closer changed to: "dgp"
    3. subsystem changed to: "27. Channel Types"