--no-color results in different output #875
Labels
No Label
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#875
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
What I'm trying to do and why
I'm struggling to port a borg diff command to borgmatic. Indicative example, in a bash script:
Although the diff command works on the command line (when archives are specified), it fails with substitution with
Archive archive1 does not exist
Running with debug shows the following difference:Command line:
Via script and substitution:
For some reason, single quotes are being introduced.
Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
No response
borgmatic installation method
No response
Borg version
No response
Python version
No response
Database version (if applicable)
No response
Operating system and version
No response
Unable to find archive when passed as variablesto --no-color results in different outputThis is actually a red herring. The issue was using the output from a
borgmatic list
invocation provided output with ANSI codes. Apparently the--no-color
flag should suppress color, which it does... but my output then changes:Seems to be fixed here:
#863
Glad to hear you've got this sorted now—and that an existing fix helped!