diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_tar | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 130bec319..0771c2719 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-12-30 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * Daniel: 51249: Completion/Unix/Command/_tar: copy + --force-local option as needed for file names. + 2022-12-16 Oliver Kiddle <opk@zsh.org> * 51214: Doc/Zsh/builtins.yo, Src/builtin.c, Test/B04read.ztst, diff --git a/Completion/Unix/Command/_tar b/Completion/Unix/Command/_tar index f9901c0c9..1cabd9713 100644 --- a/Completion/Unix/Command/_tar +++ b/Completion/Unix/Command/_tar @@ -158,7 +158,7 @@ elif [[ ( "$_tar_cmd" = *[xt]* || -n $del ) && -n "$tf" ]]; then fi if [[ $tf != $_tar_cache_name && -f $tf ]]; then - _tar_cache_list=("${(@f)$($words[1] $largs $tf)}") + _tar_cache_list=("${(@f)$($words[1] ${words[(r)--force-local]} $largs $tf)}") _tar_cache_name=$tf fi |