#511 A convenience option to [glob] returning all entries

closed-duplicate
5
2008-03-27
2008-01-28
Evil Son
No

Currently, to match all entries in a directory including hidden entries (in Unix) and entries that start with a period (in general) we use:
[glob * .*]

Matching hidden entries explicitly in this way is likely to be more expensive than an option that returns all directory entries without any matching i.e a dump of the directory contents. A possible option is "-all":
[glob -all]

Thank you.

E Wilson
ewilsonmail@gmail.com

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I believe an -all should exclude . and .., thus giving just the
    contents of the directory in a platform-independent way.

     
  • Don Porter

    Don Porter - 2008-01-28
    • labels: 322376 --> 36. Pathname Management
     
  • Donal K. Fellows

    • assigned_to: dkf --> vincentdarley
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2008-03-12

    Logged In: YES
    user_id=72656
    Originator: NO

    dup of 1880980

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2008-03-12
    • status: open --> pending-duplicate
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-duplicate --> closed-duplicate
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks