.
D 2005-02-22T08:16:35
J assignee vincentdarley
J cmimetype text/plain
J comment [glob]\sis\sdocumented\sto\sbehave\slike\scsh\sglobbing,\swith\nonly\stwo\sexceptions.\sThe\sfirst\s(sorting)\sis\snot\nrelevant,\sthe\ssecond\ssays\s[glob]\sreturns\sonly\sexisting\nfiles.\sIt\smight\sor\smight\snot\sbe\srelevant,\sI\scan't\stell...\n\nThe\ssituation:\n\n1)\slet\sme\sshow\show\scsh\sbehaves\son\smy\sLinux\sbox\sand\ntherefore\swhat\sI\sexpected\s[glob]\sto\sreturn:\n\n\s\smakr@pcmakr1:~>\scsh\n\s\s/home/makr>\sls\s-l\s/\s|\sgrep\s'[rb]oot$'\n\s\sdrwxr-xr-x\s\s\s\s4\sroot\s\s\s\s\sroot\s\s\s\s\s\s\s\s\s1024\s2004-12-22\n13:19\sboot\n\s\sdrwx------\s\s\s17\sroot\s\s\s\s\sroot\s\s\s\s\s\s\s\s\s\s832\s2005-01-24\n08:33\sroot\n\s\s/home/makr>\secho\s/[rb]oot/*\n\s\s/boot/System.map-2.4.20-4GB\s/boot/System.org\n/boot/boot\s/boot/boot.0800\s/boot/grub\s/boot/initrd\n/boot/initrd.org\s/boot/initrd.shipped\s/boot/lost+found\n/boot/map\s/boot/memtest.bin\s/boot/message\n/boot/vmlinux.gz\s/boot/vmlinuz\s/boot/vmlinuz.autoconf.h\n/boot/vmlinuz.config\s/boot/vmlinuz.org\n/boot/vmlinuz.shipped\s/boot/vmlinuz.version.h\n\n2)\strying\sto\suse\s[glob]\sthis\sway,\showever,\sgives\sme\neither\san\serror\s(a)\sor\snothing\s(b):\n\na)\n\n\s\s(makr)\s53\s%\sglob\s--\s{/[rb]oot/*}\n\s\scouldn't\sread\sdirectory\s"/root/":\spermission\sdenied\n\nb)\n\n\s\s(makr)\s54\s%\sglob\s-nocomplain\s--\s{/[rb]oot/*}\n\s\s(makr)\s55\s%\s\n\nTcl\sversion:\n\s\s(makr)\s52\s%\sset\stcl_patchLevel\n\s\s8.4.9\n\nTo\sme\sthe\sbehavior\sin\s(a)\sis\swrong\sas\sthe\sdocumentation\nmakes\sme\sexpect\sanother\sresult.\sThe\sresult\sof\s(b),\nhowever,\sis\salso\sodd,\swhen\s(a)\sis\sdeemed\sas\s"works\sas\ndesigned".\sAfter\sall,\sthere\smight\sbe\scases,\swhen\sit\nmight\sbe\sgood\sto\sknow\sthe\spattern\smatches\spartly\ninaccessable\sfile\ssystem\sparts.\sOn\sthe\sother\shand,\sif\sI\njust\swant\sa\slist\sof\saccessable\sfiles\sthis\sbehavior\ncomplicates\slife\sunneccessarily...\n\nkind\sregards\n--\sMatthioas\sKraft
J foundin obsolete:\s8.4.9
J priority 5\sMedium
J resolution None
J status Open
J submitter matzek
J subsystem 37.\sFile\sSystem
J title Unexpected\s[glob]\sresult,\swhen\smatch\sis\spartly\sinaccessable
J type Bug
K 1146047fffffffffffffffffffffffffffffffff
U matzek
Z fad1e9ec352a04d9bcc9bcda4358dd79