Overview
| Artifact ID: | f1995145f3fa0ffa8513a39606e93741013a5f3a85e9f20b399d2e0e0642c0b5 |
|---|---|
| Ticket: | e5c21e566ff31a51f85bf12e0b5031993a3c4b4a
inconsistent handling of glob -nocomplain |
| User & Date: | sebres on 2025-08-13 19:24:18 |
Changes
- icomment:
I know that all, but... again, I only spoke about ENOENT and EACCES and inconsistences. I agree that nocomplain is indeed "ambiguous" option in that context, however throwed error ENOENT is completely unexpected here, isn't it? If you mean that it shall be considered orthogonal to -nocomplain option, I'm agree. I just wanted emphasize that even with -nocomplain it behaves strange (complains with both mentioned errors). As for inconsistence by EACCESS, I think "./private/some/.../child" is simply considered as not found (because otherwise you have to check permissions of every parent). And I just wanted illustrate, that in this case throwing of EACCESS by `glob` on "./private" may be a nonsense, even because `glob` on "./private/some/.../child" just handles it as no such entry (not found). And I tend to say it is correct and logical. Also note that "inconsistence" with EACCESS is showing across platforms. Here is the linux world: <code><pre> % cd ./private couldn't change working directory to "./private": permission denied % glob -nocomplain -directory ./private * couldn't read directory "./private/": permission denied % glob -nocomplain -directory ./private/. * ~empty~ </pre></code> But I never saw ENOENT on linux, and even if it can be some circumstances (e. g. file system type, etc), I cannot imagine why `glob` shall ever throw it (if, normally, it never does that in regular case).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"