Menu

#349 list commands modifies strings containing backslashes

final: 8.1.1
closed-invalid
nobody
2
2001-04-22
2000-10-26
Anonymous
No

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

Discussion

  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter

    Don Porter - 2001-04-22
    • labels: 104246 --> 17. Commands I-L
    • status: closed-fixed --> closed-invalid