1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

allow - before first argument of tar

This commit is contained in:
Peter Stephenson 2006-10-10 22:38:40 +00:00
parent ca06d8e308
commit 14ed190087
2 changed files with 5 additions and 0 deletions

@ -1,5 +1,8 @@
2006-10-10 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 22860: Completion/Unix/Command/_tar: allow - before first
argument of tar.
* 22859: Completion/Base/Utility/_arguments: improved to
handle all descriptions for zsh configure and GNU tar.

@ -154,6 +154,8 @@ elif [[ ( "$_tar_cmd" = *[xt]* || -n $del ) && -n "$tf" ]]; then
_wanted files expl 'file from archive' _multi_parts / _tar_cache_list
elif (( CURRENT == 2 )); then
# ignore leading - since we complete option letters anyway
compset -P -
_values -s '' 'tar function' \
'(c t u x)A[append to an archive]' \
'(A t u x)c[create a new archive]' \