summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-11-19 22:04:38 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-11-19 22:04:38 (GMT)
commite26a569c68c90ec0011ec6b4e464fb77c78b7d89 (patch)
tree803b1e91e61b1c8749ab92857b139b1f5b474a78 /generic
parent43f12dcb2dc6be1a838da527880200a7a483e2ac (diff)
downloadtcl-e26a569c68c90ec0011ec6b4e464fb77c78b7d89.zip
tcl-e26a569c68c90ec0011ec6b4e464fb77c78b7d89.tar.gz
tcl-e26a569c68c90ec0011ec6b4e464fb77c78b7d89.tar.bz2
Fixed Bug 845412; long commands without expansion don't get tangled with the
expansion machinery now...
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index d687fbe..0514838 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.53 2003/11/17 15:23:10 dgp Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.54 2003/11/19 22:04:39 dkf Exp $
*/
#include "tclInt.h"
@@ -923,7 +923,7 @@ TclCompileScript(interp, script, numBytes, envPtr)
wordIdx < parse.numWords; delta++, wordIdx++,
tokenPtr += (tokenPtr->numComponents + 1)) {
- if ((delta == 255)
+ if (expand && (delta == 255)
&& (tokenPtr->type != TCL_TOKEN_EXPAND_WORD)) {
/*
* Push an empty list for expansion so our delta