Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-08-24
23:45 • Closed ticket [219392ffff]: glob manual page could be more helpful about behavio... artifact: d5cc73c29c user: vincentdarley
04:51 • Ticket [219392ffff]: 1 change artifact: 96e3f05a58 user: andreas_kupries
2001-03-28
14:11 • Ticket [219392ffff]: 1 change artifact: 2dbcb601c8 user: dgp
09:08 • Ticket [219392ffff]: 1 change artifact: dde2ebf501 user: hobbs
2001-02-07
22:34 • Ticket [219392ffff]: 1 change artifact: 8ab79220a1 user: dkf
2000-11-15
22:10 • Ticket [219392ffff]: 1 change artifact: 4b0ca10fb6 user: dkf
2000-10-26
05:12 • New ticket [219392ffff]. artifact: 9437c2e886 user: nobody

glob manual page could be more helpful about behaviour on wi

Closed / Fixed219392ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:12:16
OriginalBugID: 6165 Bug
Version: 8.3.2
SubmitDate: '2000-08-24'
LastModified: '2000-10-25'
Severity: LOW
Status: UnAssn
Submitter: techsupp
OS: All
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
Steve Cassidy

ObservedBehavior:
The glob command behaves counter-intuitively with windows style path patterns.  This is just
a small addition to the manual page to point out this behaviour and suggest a work around.

Patch:
*** ../../../8.4/tcl/doc/glob.n Wed Jan 26 14:37:30 2000
--- glob.n      Thu Aug 24 11:51:04 2000
***************
*** 146,151 ****
--- 146,163 ----
  domain server.  Otherwise, user account information is obtained from
  the local computer.  On Windows 95 and 98, \fBglob\fR accepts patterns
  like ``.../'' and ``..../'' for successively higher up parent directories.
+
+ .
+ Since the backslash character has a special meaning to the glob
+ command, glob patterns containing Windows style path separators need
+ special care.  The pattern \fIC:\e\efoo\e\e*\fR is interepreted as
+ \fIC:\efoo\e*\fR where \fI\ef\fR will match the single character \fIf\fR
+ and \fI\e*\fR will match the single character \fI*\fR and will not be
+ interpreted as a wildcard character.  One solution to this problem is
+ to use the Unix style forward slash as a path separator.  Windows style
+ paths can be converted to Unix style paths with the command \fB[eval
+ file join [file split $path]]\fR.
+
  .TP
  \fBMacintosh\fR
  .

PatchFiles:
doc/glob.n
dkf Ticket [219392ffff]: 1 change [History diff]2000-11-15 22:10:27
dkf Ticket [219392ffff]: 1 change [History diff]2001-02-07 22:34:16
hobbs Ticket [219392ffff]: 1 change [History diff]2001-03-28 09:08:36
dgp Ticket [219392ffff]: 1 change [History diff]2001-03-28 14:11:08
andreas_kupries Ticket [219392ffff]: 1 change [History diff]2001-08-24 04:51:14
vincentdarleyplain2001-08-24 23:45:22
Logged In: YES 
user_id=32170

applied patch.
Log in (anonymous is fine) to add a comment.