Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-23
01:42 • Ticket [218172ffff] list commands modifies strings containing backslashes st... artifact: a77ba86191 user: dgp
2000-10-26
08:15 • Closed ticket [218172ffff]. artifact: 8616a3c927 user: welch
00:54 • New ticket [218172ffff]. artifact: a70c32b8a9 user: nobody

list commands modifies strings containing backslashes

Closed / Invalid218172ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:54:07
OriginalBugID: 2282 Bug
Version: 8.1.1
SubmitDate: '1999-06-25'
LastModified: '1999-06-29'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: redman
OS: Windows NT
OSVersion: v 4.0 (also on Win95 and most likely on Win98)
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-06-29'


Name:
Ingemar Hansson

ReproducibleScript:
set files [glob ../*]
    set nFiles [file nativename $files]
    set sFiles [lsort -dictionary $nFiles]
    set someFile [lindex $nFiles 0]

ObservedBehavior:
On a Windows platform the "file nativename" command will replace all
    slashes with backslashes.
    All listcommands that modifies the list in one way or another treats the
    backslashes as escape characters and modifies the file names to
    something useless.

DesiredBehavior:
I consider this to be a bug. It really doesn't matter if the list
    elements represents files or something else. I don't think that the list
    commands should modify the content of the list.
    Desired behaviour is therefore to return the elements untouched.



Unfortunate as it might seem to this user, this is correct behavior. 
-- 06/29/1999 redman
welch Closed ticket [218172ffff]. [History diff]2000-10-26 08:15:58
dgp Ticket [218172ffff]: 4 changes [History diff]2001-04-23 01:42:44
Log in (anonymous is fine) to add a comment.