Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-03-27
09:20 • Closed ticket [1880967fff]: A convenience option to glob returning all entries... artifact: 62d00a886e user: sf-robot
2008-03-13
02:44 • Pending ticket [1880967fff]. artifact: bf662b17ac user: hobbs
2008-01-28
21:56 • Ticket [1880967fff]: 1 change artifact: 92f25bd29e user: dkf
21:55 • Ticket [1880967fff]: 1 change artifact: 994d386ee0 user: dgp
15:13 • Ticket [1880967fff]: 4 changes artifact: 9ef1336e21 user: nobody
06:19 • New ticket [1880967fff]. artifact: ef9879cc84 user: evil_son

A convenience option to [glob] returning all entries

Closed / Duplicate1880967fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-01-28 06:19:57
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
[email protected]
[email protected]plain2008-01-28 15:13:08
Logged In: NO 

I believe an -all should exclude . and .., thus giving just the
contents of the directory in a platform-independent way.
dgp Ticket [1880967fff]: 1 change [History diff]2008-01-28 21:55:19
dkf Ticket [1880967fff]: 1 change [History diff]2008-01-28 21:56:06
hobbsplain2008-03-13 02:44:20
Logged In: YES 
user_id=72656
Originator: NO

dup of 1880980
sf-robotplain2008-03-27 09:20:31
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).
Log in (anonymous is fine) to add a comment.