Skip to content
Tcl Source Code View Ticket
Login

View Ticket

glob behavior change in Tcl 8.4.14

Open2094946fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-09-05 12:55:58
From wiki.tcl.tk:

[LV] There is a minor different in [glob] in Tcl 8.5. I don't see it mentioned in the changes file and can't put my finger on any specific thing in the ChangeLogs for it. Basically, in Tcl 7.6 through 8.4, glob would ''normalize'' a path name, dropping the final slash of a directory name:

===
$ tclsh8.4
% glob /home/lwv27/
/home/lwv27
% ^D

but now

$ tclsh8.5
% glob /home/lwv27/
/home/lwv27/
% ^D

===
'''[DGP]''' Bug reports like this belong in the Tracker, not here.

[LV] I don't know if I am convinced it is a bug report. It is certainly a difference in behavior, but I myself don't see it as a bug.

This minor difference actually resulted in a bug report over on [email protected] , where a function called listModules no longer works, because of the unexpected behavior. Look for the thread titled:
recent TCL versions break "listModules" due to different "glob" behavior and result in // instead of / as directory-version separator.
I suggested the person report it as a bug, and he was not comfortable doing so, indicating that it could very well be an intentional change.

Based on your comment, I will indeed open a new ticket.  Thank you.
dkf Ticket [2094946fff]: 2 changes [History diff]2008-09-05 21:47:37
dgpplain2008-09-30 01:10:04
This change first showed up in
Tcl 8.4.14.
dgpplain2008-09-30 01:20:28
This change is an effect of 
the fix for Bug 943995.
dgpplain2008-09-30 01:27:18
943995 was a real bug, and the
change was a real fix.  If the
compatibility sought in this
report can be achieved without
disturbing that, we'll need a
patch to show how.

Otherwise, there's been little
outcry since the release of
Tcl 8.4.15 two years ago, so
I'm not inclined to give this
much priority.
Log in (anonymous is fine) to add a comment.