.
D 2002-02-01T12:29:51
J assignee vincentdarley
J cmimetype text/plain
J comment Various\semails\sdiscussing\sthis\sbug\squoted\sbelow:\n\n\n\nHi\sVince,\n(iii)\ssounds\sworkable\swith\smodest\s"surprise"\sadded\nto\sthe\sdesign.\sIn\sthis\scase\sthe\sspecial\shandling\sseems\nappropriate.\sI\ssay\sthis\sstill\sw/o\sseeing\sthe\scode.\nA\spatch\swould\sbe\sgreat\sbecause\sI\sthink\s(i)\sis\sjust\nplain\sgoofy.\s-\sThanks.\n\n\nRoy\n\n\n>\sI've\slooked\sinto\sthis\sfurther\sand\sI\ssee\sthree\s\noptions:\n>\n>\s(i)\signore\sthe\sbug\sand\sdefine\s'glob'\sto\sbehave\sin\s\nthis\sway\swhen\sthe\suser\n>\sgives\sa\sfully-specified\sfile\sname\s(i.e.\swhen\sthere's\s\nno\spattern\smatching).\n>\n>\s(ii)\sadd\sa\snew\sfilesystem-specific\sAPI\s(i.e.\syet\s\nanother\sTcl_FS...\sfunction\n>\swhich\smust\sbe\simplemented\sfor\seach\sfilesystem)\swhich\s\nmatches\sfile-types\n>\saccording\sto\s'Tcl_GlobTypeData'.\s\sThis\sfunction\s\ncould\sbe\sused\sto\ssimplify\n>\seach\s'TclpMatchInDirectory'\simplementation,\sperhaps,\s\n(loop\sover\seach\sfile\n>\swhich\smatches\sthe\sglob\spattern\sand\spass\sthat\sfile\sto\s\nthe\snew\sAPI),\salthough\n>\sthere\smight\sbe\sa\sperformance\spenalty\sto\spay.\n>\n>\s(iii)\schange\sthe\sway\sTclpMatchInDirectory\sworks\sso\s\nthat\sit\scan\shandle\sthe\n>\sspecial\scase\swe\sneed\shere.\s\sThis\scan\sbe\sdone\sin\sa\s\nbackwards\scompatible\sway\n>\sas\sfollows:\sif\s'pattern'\sis\sNULL\sthen\sconsider\s\nthe\s'pathPtr'\swhich\sis\n>\spassed\sin\snot\sas\sa\sdirectory\sin\swhich\sto\ssearch,\sbut\s\nas\sa\sfully-specified\n>\spath\sto\scheck\sagainst\s'types'.\s\sThis\sis\sbackwards\s\ncompatible\sbecause\sthe\n>\scode\swill\scurrently\ssegfault\sif\spattern\sis\sNULL\s(but\s\npattern\sis\scurrently\n>\snever\sNULL,\sof\scourse).\n>\n>\sI\swould\slean\stowards\s(iii)\sas\sthe\sbest\ssolution,\s\nsince\s(ii)\sis\sneedlessly\n>\scomplicated\sand\s(i)\sisn't\svery\sgood.\sHowever,\sif\swe\s\ndo\sadopt\s(iii)\swe\smight\n>\sthen\swish\sto\schange\sthe\sname\sof\sthe\sfunction\stoo\s\n(it's\sa\snew\sfunction\sin\n>\sTcl\s8.4a3\sso\schanging\sit\sisn't\sa\scompatibility\s\nissue).\n>\n>\sAny\sthoughts?\n>\n>\sVince.\n>\n>\sNote:\smy\soriginal\ssuggestion\sof\sduplicating\scode\sin\s\ntclFileName.c\sis\sno\n>\sgood,\sbecause\sthat\scode\sis\sfilesystem/platform\s\nspecific\s(because\smatching\n>\sagainst\s'Tcl_GlobTypeData'\sis\splatform\sspecific).\n>\n>\sAt\s09:51\sAM\s1/22/2002\s-0800,\sRoy\sTerry\swrote:\n>\s>Vince,\n>\s>I\stake\syour\sword\sfor\sit.\sI\swasn't\sable\sto\sfind\sit\sin\n>\s>my\ssource\swhich\swhich\sI\sbelieve\sis\s8.4a3\sand\swhere\n>\s>RCS:\s@(#)\s$Id:\stclFileName.c,v\s1.16\s2001/08/07\s\n01:00:02\shobbs\sExp\s$\n>\s>only\shas\s2360\slines.\sI\smust\sbe\sbehind\sa\sbit.\sFor\smy\s\n2\scents,\n>\s>I'd\sbe\sa\sbit\sconcerned\sabout\sduplicating\sthough\s\ncertainly\sthe\sessential\n>\s>properties\sof\sfiles\sseem\spretty\sstable.\sI\swill\sbe\s\nrefreshing\smy\n>\s>code\sin\sthe\snext\sfew\sweeks\sso\sif\syou've\snot\sput\sin\s\na\sfix\sby\sthen\n>\s>I'll\sget\sback\sin\stouch\sand\ssee\sIf\sI\scan\scontribute.\n>\s>\n>\s>\n>\s>Thanks,\n>\s>Roy\n>\s>\n>\s>\s>\sFound\sa\sfew\sminutes\sto\slook\smore\sclosely\sat\sthe\s\ncode.\s\sBasic\sproblem\swhich\n>\s>\s>\sneeds\sfixing\sstarts\sin\sthe\sblock\sof\scode\sat\sline\s\n2477\sof\n>\s>\s>\stclFileName.c.\s\sThis\scode\sdoesn't\spay\sany\s\nattention\sto\sthe\s'types'\sargument\n>\s>\s>\sof\sthe\sfunction\s(TclDoGlob).\s\sWhile\sthere\smay\sbe\s\nelegant\sways\sof\sfixing\sthe\n>\s>\s>\scode\swithout\sduplication\s(as\salluded\sto\sbelow),\s\nif\sone\sadds\ssuitable\n>\s>\s>\s'types'\schecking\sto\sthat\sblock\sof\scode,\sit'll\s\nfix\sthis\sproblem.\n>\s>\s>\n>\s>\s>\scheers,\n>\s>\s>\n>\s>\s>\sVince.\n>\s>\s>\n>\s>\s>\sAt\s04:22\sPM\s1/21/2002\s-0800,\sJeff\sHobbs\swrote:\n>\s>\s>\s>Roy\sTerry\swrote:\n>\s>\s>\s>\s>\n>\s>\s>\s>\s>\sIn\sthe\sfollowing\stranscript,\snotice\show\sthe\n>\s>\s>\s>\s>\s-types\srestriction\sseems\sto\sbe\signored\sif\n>\s>\s>\s>\s>\sa\sliteral\sfile\sname\sis\sgiven.\n>\s>\s>\s>\n>\s>\s>\s>Yes,\sthat\sdoes\sseem\sto\sbe\sthe\scase,\stested\son\s\nthe\shead\sand\s8.3.4.\n>\s>\s>\s>Evidently\sthe\s-types\scheck\sisn't\sbeing\sheeded\s\nwhen\sthere\sis\sjust\n>\s>\s>\s>one\sfile\smatching,\sor\ssomething\slike\sthat.\n>\s>\s>\s>\n>\s>\s>\s>\s>\s(tmp)\s84\s%\sls\s-l\n>\s>\s>\s>\s>\s./:\n>\s>\s>\s>\s>\s-r--r--r--\s\s\s\s\s\s316\sJan\s18\s12:56\sx\n>\s>\s>\s>\s>\s(tmp)\s85\s%\sglob\s-types\sf\s?\n>\s>\s>\s>\s>\sx\n>\s>\s>\s>\s>\s(tmp)\s86\s%\sglob\s-types\sf\s.\n>\s>\s>\s>\s>\s.\n>\s>\s>\s>\s>\s(tmp)\s87\s%\sglob\s-types\sw\s?\n>\s>\s>\s>\s>\sno\sfiles\smatched\sglob\spattern\s"?"\n>\s>\s>\s>\s>\s(tmp)\s88\s%\sglob\s-types\sw\sx\n>\s>\s>\s>\s>\sx\n>\s>\s>\s>\s>\s(tmp)\s89\s%\sputs\s$tcl_patchLevel\n>\s>\s>\s>\s>\s8.4a4\n>\s>\s>\s>\s>\s(tmp)\s90\s%\sparray\stcl_platform\n>\s>\s>\s>\s>\stcl_platform(byteOrder)\s=\slittleEndian\n>\s>\s>\s>\s>\stcl_platform(machine)\s\s\s=\sintel\n>\s>\s>\s>\s>\stcl_platform(os)\s\s\s\s\s\s\s\s=\sWindows\sNT\n>\s>\s>\s>\s>\stcl_platform(osVersion)\s=\s4.0\n>\s>\s>\s>\s>\stcl_platform(platform)\s\s=\swindows\n>\s>\s>\s>\s>\stcl_platform(user)\s\s\s\s\s\s=\sroy\n>\s>\s>\s>\s>\s(tmp)\s91\s%\n>\s>\s>\s>\n
J foundin obsolete:\s8.4a4
J priority 5\sMedium
J resolution None
J status Open
J submitter vincentdarley
J subsystem 37.\sFile\sSystem
J title glob\swith\sfull\spath\signores\s-types
J type Bug
K 511666ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 5d387e4d297af72654e8dd8e553c28cf