summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2015-10-23 22:29:23 (GMT)
committerKevin B Kenny <kennykb@acm.org>2015-10-23 22:29:23 (GMT)
commitb40c3af17683766d1e1359c9ceb4dd7178f6afc5 (patch)
treeca3bcd68c062e43c5f214ddd658c4e690c964631
parent4e08431e8790a66cea86d33c8c770626396509c0 (diff)
downloadtcl-b40c3af17683766d1e1359c9ceb4dd7178f6afc5.zip
tcl-b40c3af17683766d1e1359c9ceb4dd7178f6afc5.tar.gz
tcl-b40c3af17683766d1e1359c9ceb4dd7178f6afc5.tar.bz2
Correct bad regexp in platform::identify that causes it to return incorrect results everywhere.
-rw-r--r--library/platform/platform.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/platform/platform.tcl b/library/platform/platform.tcl
index c596e60..0160184 100644
--- a/library/platform/platform.tcl
+++ b/library/platform/platform.tcl
@@ -165,7 +165,7 @@ proc ::platform::identify {} {
global tcl_platform
set id [generic]
- regexp {^([^-]+)-([^-]+)$} $id -> plat ver wow cpu
+ regexp {^([^-]+)(-[0-9\.]+)?(-wow)?-([^-]+)$} $id -> plat ver wow cpu
switch -- $plat {
solaris {