diff --git a/src/borg/archiver/completion_cmd.py b/src/borg/archiver/completion_cmd.py index e90f7a4ad..abcc04f79 100644 --- a/src/borg/archiver/completion_cmd.py +++ b/src/borg/archiver/completion_cmd.py @@ -56,7 +56,16 @@ import shtab from ._common import process_epilog from ..constants import * # NOQA -from ..helpers import archivename_validator, SortBySpec, FilesCacheMode, PathSpec, ChunkerParams, tag_validator, relative_time_marker_validator, parse_file_size +from ..helpers import ( + archivename_validator, + SortBySpec, + FilesCacheMode, + PathSpec, + ChunkerParams, + tag_validator, + relative_time_marker_validator, + parse_file_size, +) from ..helpers.time import timestamp from ..compress import CompressionSpec from ..helpers.parseformat import partial_format @@ -368,9 +377,11 @@ _borg_complete_archive() { # Use tab as delimiter to avoid issues with spaces in archive names local out if (( ${#repo_arg[@]} > 0 )); then - out=$( borg repo-list "${repo_arg[@]}" --format '{id}{TAB}{archive}{TAB}{time}{TAB}{username}@{hostname}{NL}' 2>/dev/null /dev/null /dev/null /dev/null