summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-10-03 18:20:33 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-10-03 18:20:33 (GMT)
commit4a39b416c8cd105a1c8bcd0e88f21cff8abe51e6 (patch)
tree14b728b8f4c8981c70a78c8cd2609e887ea6c456 /generic/tclFileName.c
parent1cc358dbc248037ff9ba15eab85cedeea9697019 (diff)
downloadtcl-4a39b416c8cd105a1c8bcd0e88f21cff8abe51e6.zip
tcl-4a39b416c8cd105a1c8bcd0e88f21cff8abe51e6.tar.gz
tcl-4a39b416c8cd105a1c8bcd0e88f21cff8abe51e6.tar.bz2
Attempt to correct regression filename-16.6 due to 2006-05-13 commit.
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 9dce822..12a50e5 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclFileName.c,v 1.40.2.14 2006/10/02 18:30:40 dgp Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.40.2.15 2006/10/03 18:20:33 dgp Exp $
*/
#include "tclInt.h"
@@ -2351,7 +2351,11 @@ TclDoGlob(interp, separators, headPtr, tail, types)
break;
}
if (tclPlatform != TCL_PLATFORM_MAC) {
- Tcl_DStringAppend(headPtr, tail, 1);
+ if (*tail == '\\') {
+ Tcl_DStringAppend(headPtr, separators, 1);
+ } else {
+ Tcl_DStringAppend(headPtr, tail, 1);
+ }
}
count++;
}