glob -join broken in 8.5
Closed / Duplicate2321713fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-11-21 16:53:41
The -join option of the glob command has a bug that inadvertently returns a double slash when joining on a drive's root directory.
For example:
glob -join c:/ *
returns files in a form
c://name1 ... c://nameN
There should be only one slash. There was only one slash in Tcl 8.4 and prior versions.
I only tested Tcl 8.5.2 and Tcl 8.5.5 and the bug appeared in both versions. The bug appeared in both Windows 2000 and Windows XP. No other environments were tested.
Workaround: When the -join is instead replaced with
glob [file join c:/ *]
the resulting files have only one slash.
dgpplain2008-11-22 01:04:57
I assume you haven't actually tested a Tcl 8.4 release since 8.4.14. This looks like a duplicate of 2094946. hmm also 1920544.
sf-robotplain2008-12-06 09:20:46
This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.