[bug #67517] Inconsistent variable $@ if target has an escaped wildcard like \*
"Paul D. Smith" <[email protected]> Sat, 20 Sep 2025 16:30:42 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <[email protected]> |
Follow-up Comment #2, bug #67517 (group make):
Yes, I see. The reason is that we use glob(3) to do the filename matching,
and if the globbing expression matches a name then the name is returned with
the escaping removed. So if the file exists, the glob matches, and the escape
is removed.
If nothing matches, then we use the filename we were provided (that contains
the escapes). So if the file doesn't exist, the glob doesn't match, and we
use the original with escapes.
Obviously this is not a good situation since it's non-deterministic. The
problem is I'm not sure how the obvious solution (remove the escaping if the
file is not found) will work on systems like Windows. I'll need to test that.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67517>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaM8O8gAKCRCqLAuaBUf3 Tl48AP0aKAqTpEji3tPoa6pNfSIeenz0dapwMKw4aeTbKBWEKAD+ONWhCeBwgDL3 m4aRPGbx7uJmD1KS8/Kom38FeZrqiws= =3ZnS -----END PGP SIGNATURE-----