Overview
| Artifact ID: | 506f8a60d5137d0cc722e7404f786d050de5ef62 |
|---|---|
| Ticket: | 823329ffffffffffffffffffffffffffffffffff
glob -types type/creator/hidden not implemented on OSX |
| User & Date: | vincentdarley on 2003-10-14 10:09:58 |
Changes
- assignee changed to: "das"
- cmimetype changed to: "text/plain"
- comment changed to:
Commands like: glob -type TEXT * are not implemented on OS X. Since it is a version of MacOS, it is capable of supporting these things. Vince. Various comments below: On Tuesday, Oct 14, 2003, at 19:40 Australia/Sydney, Vince Darley wrote: > Should this just be #ifdef'd into NativeMatchType so it compiles on the > relevant platform, or...? I don't really understand all the vagaries > of > different unix systems so am probably not the person to implement > this... the creator/type code is #ifdef MAC_OSX_TCL so the same would be appropriate, c.f tclMacOSXFCmd.c [glob -types hidden] should be properly supported as well, that's also handled by TclMacOSXGetFileAttribute() and controlled by same #ifdef also [glob -types readonly] should be handled on unices that support CHFLAGS, c.f GetReadOnlyAttribute() in tclUnixFCmd.c, this is controlled by #if defined(HAVE_CHFLAGS) && defined(UF_IMMUTABLE) > Also, by the time we're in NativeMatchType we actually only have a > native > path description (no Tcl_Obj) so we really want access to the innards > of > TclMacOSXGetFileAttribute. that's a bit of a pain, it kills code modularization for these functions... it wouldn't be hard to copy the guts out of TclMacOSXGetFileAttribute() and GetReadOnlyAttribute() into the unix NativeMatchType() but it doesn't seem to be very clean. maybe we need a native path aware versions of TclMacOSXGetFileAttribute/GetReadOnlyAttribute ? don't have much time to spend on this at the moment, maybe best to add a bug report on SF so that this doesn't get lost? we really should have thought about this when I did TIP 118...
- foundin changed to: "obsolete: 8.4.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "37. File System"
- title changed to:
glob -types type/creator/hidden not implemented on OSX
- type changed to: "Bug"