Skip to content

Not able to add escapable characters to TAG_PREFIX #342

@zergeborg

Description

@zergeborg

I tried adding an escapable character (namely the "xxxxx/" (forward slash) character) to the TAG_PREFIX variable, but I was unable to do so because:

sed: bad option in substitution expression

On the other hand, if I try to assign the same character to the TAG_PREFIX variable by escaping it with a backward slash (as in "xxxxx\/"), then instead of escaping, the two characters are treated by their literal value, which causes bumping to fail (since the literal value and the escaped value cannot match):

fatal: ambiguous argument 'xxxxx\/v0.0.0': unknown revision or path not in the working tree.

Am I correct to assume that this is a bug? Also, is there a workaround for this?

Edit: since the first error complains about sed, I suspect this error might have to do with regular expressions, since regex normally treats the forward slash as a special delimiter character

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions