Re: mtree and file names containing an asterisk

Edgar Fuß <[email protected]> Fri, 15 Aug 2025 10:06:56 +0200
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
> If the filename in the spec. contains a wildcard, it is treated as such:
But the filename in the spec is foo\052bar, not foo*bar!

> But, maybe mtree(8) should not do wildcard expansion on the filenames read from
> a directory entry. It should only do so if comes from a spec.:
Err, what? Are you saying what it currently does is treating the 
on-filesystem filename foo*bar as a wildcard pattern? But what should an 
on-filesystem filename "match"?

Whatever, I think the most basic requirement mtree should fulfil is that if 
I generate a spec from a path and then compare the spec to the path (without 
changing anything on-disc, of course), the comparison should succeed no 
matter which octets the on-disc filenames contain or what the phase of the 
moon is.