Fix escaped environment variable in configuration #549
No reviewers
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic!549
Loading…
Reference in a new issue
No description provided.
Delete branch ":master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
not to resolve it and remove the escape char
\@ -12,1 +12,3 @@name, default = matcher.group("name"), matcher.group("default")if matcher.group('escape') is not None:# in case of escaped envvar, unescape itreturn matcher.group('variable')There's a super edge case where an escaped
\${FOO:-default}would not be treated properly, but probably not worth dealing with given how unlikely it is to occur in the wild.