|
2004-01-26
| ||
| 20:30 | • Closed ticket [883825ffff]: file system does not return a 2 element list p... artifact: 408f0106ca user: vincentdarley | |
|
2004-01-24
| ||
| 21:13 | • New ticket [883825ffff]. artifact: 4fafbe2221 user: eriklns | |
[file system] does not return a 2 element list
Closed / Fixed883825ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-01-24 21:13:14
Observed ======== The docs to [file system] say: `Returns a list of two elements, ...' However, on Linux (a reiserfs in my case), I get: % file system . native % llength [file system .] 1 % set tcl_patchLevel 8.4.5 Furthermore, from the same command in the manual page, it is unclear to me, what is meant by: `... If a filesystem only supports one type of file, the second element may be null. ...' What exactly is a "null element" in Tcl anyway? Expected ======== 1. Docs and command behaviour should be in sync with respect to the return value. 2. The term "null element" should be explained or replaced by a more unambiguous term. Sincerely, Erik Leunissen
vincentdarleyplain2004-01-26 20:30:58
Logged In: YES user_id=32170 Thanks for the report. This has now been fixed in cvs: Returns a list of one or two elements, the first of which is the name of the filesystem to use for the file, and the second, if given, an arbitrary string representing the filesystem-specific nature or type of the location within that filesystem. If a filesystem only supports one type of file, the second element may not be supplied. For example the native files have a first element 'native', and a second element which when given is a platform-specific type name for the file's system (e.g. 'NTFS', 'FAT', on Windows). A generic virtual file system might return the list 'vfs ftp' to represent a file on a remote ftp site mounted as a virtual filesystem through an extension called 'vfs'. If the file does not belong to any filesystem, an error is generated.
Log in (anonymous is fine) to add a comment.