Artifacts Associated With Ticket bca391ab51
Ticket change [11abf667c9] (rid 252224) by apnadkarni on 2026-03-18 16:18:58:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
The following shows inconsistencies in behaviour in the use of volume-relative paths. At the DOS command level, current directory for drives C: and D: are \tcl and \src respectively. ``` c:\Tcl>d: D:\src>tclsh % cd d: % pwd D:/src % cd c: % pwd C:/ ``` Along similar lines, ``` D:\src>tclsh % file normalize d: D:/src % file normalize c: C:/ ``` does not seem consistent given that the current directory on C: at the OS level was not root. I think volume relative paths should be resolved relative to the current directory on that volume as seen at the process / OS level.
- foundin initialized to: "9.0"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
cd and file normalize inconsistency with volume-relative paths on Windows
- type initialized to: "Bug"
Ticket change [e6249cc0db] (rid 252237) by apnadkarni on 2026-03-20 16:49:10:
- icomment:
A more obvious inconsistency with Windows user expectations: Command shell: ``` D:\src>pwd D:\src D:\src>cd C: C:\ D:\src>cd d: D:\src D:\src>pwd D:\src ``` vs Tcl: ``` D:\src>tclsh % pwd D:/src % cd c: % cd d: % pwd D:/ ```
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [5e1d1e223a] (rid 252238) by apnadkarni on 2026-03-20 16:53:24:
- icomment:
Proposed solution in [bug-b71c3b2471](https://core.tcl-lang.org/tcl/timeline?r=bug-b71c3b2471). This tracks current directory per drive via env variables as in CMD.EXE so exec's will also inherit the mappings. An alternative would be to always treat X: as X:/ (the root dir). This would also be consistent (and of course trivial to implement) but would not reflect user expectations that are based on the Windows command line.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [085845f69e] (rid 252340) by apnadkarni on 2026-03-25 06:19:27:
- closedate changed to: "2461124.7635140163"
- closer changed to: "apnadkarni"
- icomment:
Fixed in [38f0ce657c] as no objections raised on core. Not backported to 9.0 as I don't think such a change should go into a patch release.
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [0b4cbf5d5c] (rid 256469) by sebres on 2026-09-18 16:10:58:
- assignee changed to: "sebres"
- closer changed to: "nobody"
- icomment:
I don't think the fix is fully correct, or rather doesn't introduce an error in case if current directory (where test-suite started) not in the first drive. Still worse it would be if current directory is neither in first nor in second drive.<br/> Moreover it seems to overwrite path unconditionally (in line 339), what causes the set path in else case doesn't matter at all. But even without that overwrite this test will fail if current directory is T:/Temp (like my TEMP folder on RAM drive T:), so the comparison <code>[file norm $path] with [file join $dir foo]</code> happens on "D:/foo" (normalized "D:foo") and "T:/Temp/foo" (what obviously never equal).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Rejected"
- status changed to: "Open"
Ticket change [c75e86aa11] (rid 256480) by sebres on 2026-09-18 16:27:31:
- assignee changed to: "nobody"
- closedate changed to: "2461302.1857869793"
- closer changed to: "sebres"
- icomment: "Fixed in [56afc6b1bcc19c16] now."
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"