summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-03-11 15:40:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-03-11 15:40:45 (GMT)
commitb1d25860c469bbaccef10bb6a596fb93d397b2b0 (patch)
tree37b2ecabd2197f5ce126d81bd29eefd5e1c36a4c /generic
parentc31b2f4c54d596aafee955890527c1b2406093b1 (diff)
downloadtcl-b1d25860c469bbaccef10bb6a596fb93d397b2b0.zip
tcl-b1d25860c469bbaccef10bb6a596fb93d397b2b0.tar.gz
tcl-b1d25860c469bbaccef10bb6a596fb93d397b2b0.tar.bz2
Simple change gets most of the effect. Fails to handle backslash. anyone care?bug_1a25fdfec6
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompCmdsGR.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompCmdsGR.c b/generic/tclCompCmdsGR.c
index e674fb0..87ed745 100644
--- a/generic/tclCompCmdsGR.c
+++ b/generic/tclCompCmdsGR.c
@@ -2966,10 +2966,12 @@ IndexTailVarIfKnown(
} else {
full = 0;
lastTokenPtr = varTokenPtr + n;
- if (!TclWordKnownAtCompileTime(lastTokenPtr, tailPtr)) {
+
+ if (lastTokenPtr->type != TCL_TOKEN_TEXT) {
Tcl_DecrRefCount(tailPtr);
return -1;
}
+ Tcl_SetStringObj(tailPtr, lastTokenPtr->start, lastTokenPtr->size);
}
tailName = TclGetStringFromObj(tailPtr, &len);