summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorstanton <stanton>1999-02-03 19:12:25 (GMT)
committerstanton <stanton>1999-02-03 19:12:25 (GMT)
commit51100ef26ab0199626b74c3bd866099610703ee9 (patch)
tree09c95ddbc632f3ea1c0f4181202eb986a9581701 /generic
parent3e5c4b0cfd21d1c35065c296da52fe468768810b (diff)
downloadtcl-51100ef26ab0199626b74c3bd866099610703ee9.zip
tcl-51100ef26ab0199626b74c3bd866099610703ee9.tar.gz
tcl-51100ef26ab0199626b74c3bd866099610703ee9.tar.bz2
* test/winPipe.test: Changed to remove echoArgs.tcl temporary file
when done. * tests/cmdAH.test: * generic/tclFileName.c (TclGetExtension): Changed behavior so the split happens at the last period in the name instead of the first period of the last run of periods. So, "foo..o" is split into "foo." and ".o" now. [Bug: 1126]
Diffstat (limited to 'generic')
-rw-r--r--generic/tclFileName.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index ed29ae2..f76192f 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -9,7 +9,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.3 1998/09/14 18:39:59 stanton Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.4 1999/02/03 19:12:26 stanton Exp $
*/
#include "tclInt.h"
@@ -1031,15 +1031,12 @@ TclGetExtension(name)
}
/*
- * Back up to the first period in a series of contiguous dots.
- * This is needed so foo..o will be split on the first dot.
+ * In earlier versions, we used to back up to the first period in a series
+ * so that "foo..o" would be split into "foo" and "..o". This is a
+ * confusing and usually incorrect behavior, so now we split at the last
+ * period in the name.
*/
- if (p != NULL) {
- while ((p > name) && *(p-1) == '.') {
- p--;
- }
- }
return p;
}