empty list each, no error, although trying to create that file alsoreturns an error since the file name is too long.
tcl 8.6.12, Windows 10 latest updates appliedxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*":
Asking for long filename (which does not exist)
% glob -nocomplain [string repeat x 251]
Ok, empty list.
Adding a "*" makes the 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/
IMHO both commands should return an empty list, even if the second hits
the MAX_PATH limit in Windows.
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 alsoreturns an error since the file name is too long.
R'
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 463 |
Nodes: | 16 (2 / 14) |
Uptime: | 156:58:47 |
Calls: | 9,384 |
Calls today: | 4 |
Files: | 13,561 |
Messages: | 6,095,919 |