<i>inconsistent handling of glob -nocomplain</i> status still Open with 3 other changes
by
.
D 2025-08-13T19:24:18.582
J icomment I\sknow\sthat\sall,\sbut...\sagain,\sI\sonly\sspoke\sabout\sENOENT\sand\sEACCES\sand\sinconsistences.\r\nI\sagree\sthat\snocomplain\sis\sindeed\s"ambiguous"\soption\sin\sthat\scontext,\showever\sthrowed\serror\sENOENT\sis\scompletely\sunexpected\shere,\sisn't\sit?\r\n\r\nIf\syou\smean\sthat\sit\sshall\sbe\sconsidered\sorthogonal\sto\s-nocomplain\soption,\sI'm\sagree.\sI\sjust\swanted\semphasize\sthat\seven\swith\s-nocomplain\sit\sbehaves\sstrange\s(complains\swith\sboth\smentioned\serrors).\r\n\r\nAs\sfor\sinconsistence\sby\sEACCESS,\sI\sthink\s"./private/some/.../child"\sis\ssimply\sconsidered\sas\snot\sfound\s(because\sotherwise\syou\shave\sto\scheck\spermissions\sof\severy\sparent).\sAnd\sI\sjust\swanted\sillustrate,\sthat\sin\sthis\scase\sthrowing\sof\sEACCESS\sby\s`glob`\son\s"./private"\smay\sbe\sa\snonsense,\seven\sbecause\s`glob`\son\s"./private/some/.../child"\sjust\shandles\sit\sas\sno\ssuch\sentry\s(not\sfound).\r\nAnd\sI\stend\sto\ssay\sit\sis\scorrect\sand\slogical.\r\n\r\nAlso\snote\sthat\s"inconsistence"\swith\sEACCESS\sis\sshowing\sacross\splatforms.\sHere\sis\sthe\slinux\sworld:\r\n<code><pre>\r\n%\scd\s./private\r\ncouldn't\schange\sworking\sdirectory\sto\s"./private":\spermission\sdenied\r\n%\sglob\s-nocomplain\s-directory\s./private\s*\r\ncouldn't\sread\sdirectory\s"./private/":\spermission\sdenied\r\n%\sglob\s-nocomplain\s-directory\s./private/.\s*\r\n~empty~\r\n</pre></code>\r\n\r\nBut\sI\snever\ssaw\sENOENT\son\slinux,\sand\seven\sif\sit\scan\sbe\ssome\scircumstances\s(e.\sg.\sfile\ssystem\stype,\setc),\sI\scannot\simagine\swhy\s`glob`\sshall\sever\sthrow\sit\s(if,\snormally,\sit\snever\sdoes\sthat\sin\sregular\scase).
J login sebres
J mimetype text/x-fossil-wiki
K e5c21e566ff31a51f85bf12e0b5031993a3c4b4a
U sebres
Z 5eb5877de8e28dc3e69f5ada20801adb