summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2006-10-03 18:20:32 (GMT)
committerdgp <dgp@noemail.net>2006-10-03 18:20:32 (GMT)
commit16731b127ee8505ae8a05f029a95e7fc71407f2d (patch)
tree14b728b8f4c8981c70a78c8cd2609e887ea6c456 /generic/tclFileName.c
parentf9e507a3667330d596cefcaa8318923aa0b6a0fe (diff)
downloadtcl-16731b127ee8505ae8a05f029a95e7fc71407f2d.zip
tcl-16731b127ee8505ae8a05f029a95e7fc71407f2d.tar.gz
tcl-16731b127ee8505ae8a05f029a95e7fc71407f2d.tar.bz2
Attempt to correct regression filename-16.6 due to 2006-05-13 commit.
FossilOrigin-Name: 9f44abdef2653c931590c41f7d6f20c7c903f7b5
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++;
}