Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "das"
  2. cmimetype changed to: "text/plain"
  3. 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...
    
    
  4. foundin changed to: "obsolete: 8.4.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "37. File System"
  10. title changed to:
    glob -types type/creator/hidden not implemented on OSX
    
  11. type changed to: "Bug"