Artifacts Associated With Ticket 218562ffffffffff
Ticket change [8262bc94d7] (rid 117231) by nobody on 2000-10-26 01:02:19:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1126 Bug Version: 8.0.4 SubmitDate: '1999-01-29' LastModified: '1999-02-03' Severity: MED Status: Released Submitter: welch ChangedBy: stanton OS: Solaris OSVersion: SunOS muffin 5.6 Generic sun4m sparc SUNW,SPARCstation-20 Machine: Other FixedDate: '1999-02-03' FixedInVersion: 8.0.5 ClosedDate: '2000-10-25' Name: Don Libes CVS: RCS: @(#) $Id: tclFileName.c,v 1.3 1998/09/14 18:39:59 stanton Exp $ Extensions: Tcl 8.0.4 ReproducibleScript: Enter the following to the Tcl interpreter: file extension a..b ObservedBehavior: [file extension a..b] returns "..b" DesiredBehavior: [file extension a..b] should return ".b" Not only is this more intuitive, but the man page says that's how it should work. Oddly, Tcl contains code specifically for this behavior: /* * 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. */ Why on earth would anyone want this behavior? The comment isn't very clear - to restate, it means that the extension of foo..o is "..o". This is inconsistent. It means that "foo..o" and "foo.x.o" are files with different extensions. Patch: *** tclFileName.c~Mon Sep 14 14:39:59 1998 --- tclFileName.cTue Jan 26 14:27:32 1999 *************** *** 1029,1045 **** && (lastSep > p)) { p = NULL; } - - /* - * 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. - */ - - if (p != NULL) { - while ((p > name) && *(p-1) == '.') { - p--; - } - } return p; } --- 1029,1034 ---- PatchFiles: tclFileName.c - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "file extension bug"
- type initialized to: "Bug"
Ticket change [83e39c26ff] (rid 117451) by welch on 2000-10-26 08:24:15:
- closedate changed to: "2000-10-26T01:24:15"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [d9af952a3e] (rid 107648) by dgp on 2001-04-16 23:20:29:
- closedate changed to: "2001-04-16T16:20:29"
- closer changed to: "dgp"
- subsystem changed to: "36. Pathname Management"