Skip to content
Tcl Source Code Artifact [535a0488fa]
Login

Artifact [535a0488fa]

Artifact 535a0488fa49367f81448aa2bc62a93d3e4c3a37:

Ticket change [535a0488fa] - Closed ticket [1292143fffffffff|1292143fff]: <i>glob does not accept backslash for directory separtor</i> plus 6 other changes by vincentdarley on 2005-09-16 00:16:29.
D 2005-09-16T00:16:29
J closedate 2005-09-15T17:16:29
J closer vincentdarley
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nGlob\sdoes\shandle\swindows\snative\sseparators\sjust\sfine,\sbut\nyou\sneed\sto\sread\sthe\sglob\sman\spage\swhere\syou\swill\ssee\sthat\nglob\sinterprets:\n\n\\x\s\s(backslash-x)\n\nas\san\sattempt\sto\smatch\sthe\scharacter\sx.\s\sHence\syou\swill\sneed\nto\sdouble\sup\syour\sbackslashes\sif\syou\swant\sglob\sto\sinterpret\nthem\sas\sdirectory\sseparators.\s\sIf\syou\sread\sthe\send\sof\sthe\nglob\sman\spage,\syou\swill\ssee\sthis:\n\nSince\sthe\sbackslash\scharacter\shas\sa\sspecial\smeaning\sto\sthe\sglob\s\ncommand,\sglob\spatterns\scontaining\sWindows\sstyle\spath\nseparators\sneed\s\nspecial\scare.\sThe\spattern\s\\fIC:\\e\\efoo\\e\\e*\\fR\sis\ninterpreted\sas\s\n\\fIC:\\efoo\\e*\\fR\swhere\s\\fI\\ef\\fR\swill\smatch\sthe\ssingle\ncharacter\s\\fIf\\fR\s\nand\s\\fI\\e*\\fR\swill\smatch\sthe\ssingle\scharacter\s\\fI*\\fR\sand\nwill\snot\sbe\s\ninterpreted\sas\sa\swildcard\scharacter.\sOne\ssolution\sto\sthis\nproblem\sis\s\nto\suse\sthe\sUnix\sstyle\sforward\sslash\sas\sa\spath\sseparator.\nWindows\sstyle\s\npaths\scan\sbe\sconverted\sto\sUnix\sstyle\spaths\swith\sthe\scommand\n\\fBfile\njoin\s$path\\fR\s(or\s\\fBfile\snormalize\s$path\\fR\sin\sTcl\s8.4).\s\n\nwhich\sexplains\sexactly\syour\sproblem.\n\n\n
J login vincentdarley
J mimetype text/plain
J status Closed
J username vincentdarley
K 1292143fffffffffffffffffffffffffffffffff
U vincentdarley
Z bfd1899c4bda21ad7da4d418ca44ebab