summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-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++;
}