Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:43 • Ticket [218519ffff] Error in documentation of glob command status still Clos... artifact: 9956d1b896 user: dgp
2000-10-26
08:23 • Closed ticket [218519ffff]. artifact: 35e067cfdf user: welch
01:01 • New ticket [218519ffff]. artifact: cd2acae6da user: nobody

Error in documentation of glob command

Closed / Fixed218519ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:37
OriginalBugID: 862 Bug
Version: 8.0p2
SubmitDate: '1998-11-25'
LastModified: '1999-04-09'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: surles
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-04-09'
FixedInVersion: 8.1b3
ClosedDate: '2000-10-25'


Date: Tue, 27 Oct 1998 01:53:15 -0800 (PST)
To: [email protected]
Subject: Error in documentation of glob command
From: [email protected]
Status: O

Tcl 8.0p2 Bug
email:  [email protected]
Severity:  4
Support:  None
OperatingSystem:  Windows 95
Extensions:  TclX, Stooop
Synopsis:  Error in documentation of glob command

ReproducibleScript:
Start wish 8.0p2 on Win95.
% glob [file nativename c:/windows/*]
no files matched glob pattern "c:\windows\*"
% glob c:/windows/*
[long list of files]

ObservedBehavior:
The man page for glob states that "the glob command only accepts native names".  It appears that the opposite is true: that glob accepts only network names.



04/09/1999 14:07 - surles - This is not a bug.  The real error returned in the above example is:
    "no files matched glob pattern "c:windows""
Notice that the backslash is gone.  This is because of the way Tcl interprets strings.  The correct string to pass to glob would be "c:\\windows" so the \ is not interpreted as a special char.

In either case, it appears that glob takes either form and converts accordingly.  The docs have been updated to state this.
welch Closed ticket [218519ffff]. [History diff]2000-10-26 08:23:19
dgp Ticket [218519ffff]: 3 changes [History diff]2001-04-05 06:43:49
Log in (anonymous is fine) to add a comment.