Overview
| Artifact ID: | 4f6bfd456ebdfc5f3d6d0c19915d20c2e7fca1c8cbda7abceb3e2324cb1c7ef9 |
|---|---|
| Ticket: | f6db6d1ec409ca399cabf528ad530e045e7d4b40
glob raises an error with too long pathnames on windows |
| User & Date: | ralfixx on 2022-05-17 17:27:04 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
tcl 8.6.12, Windows 10, with latest updates applied Asking for long filename (which does not exist) % glob -nocomplain [string repeat x 251] Ok, empty list. Adding a "*" makes the path name too long and glob err out instead of returning an empty list: % glob -nocomplain [string repeat x 251]* couldn't read directory "C:/Users/ralf/AppData/Local/Temp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*": no such file or directory => IMHO both commands should return an empty list, even if the second command hits the MAX_PATH limit in Windows. As an aside, on Linux I can do % glob -nocomplain [string repeat x 1000000] % glob -nocomplain [string repeat x 1000000]* => empty list each, no error, although trying to create that file also returns an error since the file name is too long. - foundin changed to: "8.6.12"
- is_private changed to: "0"
- login: "ralfixx"
- priority changed to: "5 Medium"
- private_contact changed to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "ralfixx"
- subsystem changed to: "36. Pathname Management"
- title changed to:
glob raises an error with long pathnames on windows
- type changed to: "Bug"