Tcl Source Code

View Ticket
Login
Ticket UUID: 1752589
Title: file normalize misses two leading / on first level catalog
Type: Bug Created on: 2007-07-12 12:22:24
Submitter: nobody Assigned to: vincentdarley
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2026-10-22 17:19:32
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-10-21 10:03:39
Version: obsolete: 8.5a6
Description:
from [email protected]

tcl 8.5a6 on linux 2.6.17

%  file normalize //bin
//bin
two slashed not replaced.

files normalize //bin/
files normalize //bin/Mail
works as expected

Thank you very much for superb work! I love tcl/tk 8.5
User Comments:
serhiy.storchaka added on 2026-10-21 10:03:39:

Fixed in 8.6.7 by [e015bfe72f] (ticket [f34cf83dd0]): file normalize //bin now gives /bin. In 9.0, a leading // on Unix is a network (UNC) root by design (TIP 402), so there //bin is left as is.