Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.