1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-05-20 11:31:28 +02:00

51249: use of --force-local with tar completion

This commit is contained in:
Daniel Shahaf 2022-12-24 11:17:16 +00:00 committed by Peter Stephenson
parent 35a2f155c3
commit bc7511bdd8
2 changed files with 6 additions and 1 deletions
ChangeLog
Completion/Unix/Command

View file

@ -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,

View file

@ -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