Artifacts Associated With Ticket 218446
Ticket change [8cf1800a9c] (rid 127826) by nobody on 2000-10-26 01:00:31:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.0p2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "60. NRE and coroutines"
- title initialized to: "cannot pass null arguments to exec or open"
- type initialized to: "Bug"
Ticket change [5d6c47855b] (rid 115459) by welch on 2000-10-26 08:22:16:
- closedate changed to: "2000-10-26T01:22:16"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [987f92f22c] (rid 110610) by dgp on 2001-04-05 08:20:13:
- closedate changed to: "2001-04-05T01:20:13"
- closer changed to: "dgp"
- subsystem changed to: "27. Channel Types"