Skip to content
Tcl Source Code History Of Ticket 218446
Login

History Of Ticket 218446

Artifacts Associated With Ticket 218446

  1. Ticket change [8cf1800a9c] (rid 127826) by nobody on 2000-10-26 01:00:31:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 546 Bug
      Version: 8.0p2
      SubmitDate: '1998-03-16'
      LastModified: '1998-06-15'
      Severity: MED
      Status: Released
      Submitter: stanton
      ChangedBy: stanton
      OS: All Windows
      OSVersion: NA
      Machine: NA
      FixedDate: '2000-10-25'
      FixedInVersion: 8.0.3
      ClosedDate: '1998-06-15'
      
      
      From: Darrel Schneider <[email protected]> 
      Subject: Tcl exec in Windows eats empty args 
      Mime-Version: 1.0 
      Content-Type: text/plain; charset="us-ascii" 
      X-UIDL: 77562633d5c508c83d88d4ff483072da 
      
      
      I found that I couldn't pass an empty arg to an execed program on
      Windows with tcl8.0p2. The fix goes in tclWinPipe.c BuildCommandLine.
      The old code was:
            for (start = argv[i]; *start != '\0'; start++) {
              if (isspace(*start)) {
                quote = 1;
                Tcl_DStringAppend(linePtr, "\"", 1);
                break;
              }
            }
      
      
      The new code is:
          quote = 0;
          if (argv[i][0] == '\0') {
            quote = 1;
          } else {
            for (start = argv[i]; *start != '\0'; start++) {
              if (isspace(*start)) {
                quote = 1;
                break;
              }
            }
          }
          if (quote) {
            Tcl_DStringAppend(linePtr, "\"", 1);
          }
      
      The patch is correct.
      
    4. foundin initialized to: "obsolete: 8.0p2"
    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: "60. NRE and coroutines"
    10. title initialized to: "cannot pass null arguments to exec or open"
    11. type initialized to: "Bug"
  2. Ticket change [5d6c47855b] (rid 115459) by welch on 2000-10-26 08:22:16:

    1. closedate changed to: "2000-10-26T01:22:16"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [987f92f22c] (rid 110610) by dgp on 2001-04-05 08:20:13:

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