summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-02-01 09:37:49 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-02-01 09:37:49 (GMT)
commite131c70a9234181716abcc8e7ae32a2bc3a42217 (patch)
tree9cec7739c8b28e65aeeee0a14e5e9d1154b5c1cf /win/tclWinPipe.c
parente8861e19ed8855fd8a90047d4e78f8f659aad9fd (diff)
downloadtcl-e131c70a9234181716abcc8e7ae32a2bc3a42217.zip
tcl-e131c70a9234181716abcc8e7ae32a2bc3a42217.tar.gz
tcl-e131c70a9234181716abcc8e7ae32a2bc3a42217.tar.bz2
* tests/winPipe.test: more pass-thru commandline verifications.
* win/tclWinPipe.c (BuildCommandLine): Special case quoting for '{' not required by the c-runtimes's _setargv(). * win/tclAppInit.c: Removed our custom setargv() in favor of the one provided by the c-runtime. [Bug 672938]
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 93d4a17..36ff112 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinPipe.c,v 1.40 2004/01/20 05:18:22 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinPipe.c,v 1.41 2004/02/01 09:37:49 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -1581,10 +1581,9 @@ BuildCommandLine(
arg = executable;
} else {
arg = argv[i];
+ Tcl_DStringAppend(&ds, " ", 1);
}
- if(Tcl_DStringLength(&ds) > 0) Tcl_DStringAppend(&ds, " ", 1);
-
quote = 0;
if (arg[0] == '\0') {
quote = 1;
@@ -1632,11 +1631,6 @@ BuildCommandLine(
Tcl_DStringAppend(&ds, "\\\"", 2);
start = special + 1;
}
- if (*special == '{') {
- Tcl_DStringAppend(&ds, start, special - start);
- Tcl_DStringAppend(&ds, "\\{", 2);
- start = special + 1;
- }
if (*special == '\0') {
break;
}