Incorrect handling of escaped hash character #215
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
If an escaped hash character appears in in a value, it is not treated as a comment introduction, but it is also removed from the output.
Example:
This breaks Clang's
-Wno-error=#warnings
flag (it was a bad idea to use a comment character in a command line argument, ut still).Seen with 1.7.3.
If it is removed from the output, then the lexer is treating it as a comment introduction.
anyway, is there any other implementation where that testcase passes as expected? i am skeptical
Well, the remainder of the line survives. If it was a comment introduction, it's expect it to be truncated after
kuku=
.I wasn't able to even build pkg-config, so I can't test it. But excising random
#
characters can't be right.what a weird bug. i'm honestly not sure what to do about this one.
I tested pkg-config 0.29.1 from Ubuntu 20.04. It emits the # and even quotes it:
Thanks! And I'd be grateful if a patch release can be issued, so I can try to lobby my distro to update.