diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-10 22:38:40 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-10 22:38:40 +0000 |
commit | 14ed1900875b6d15f13720379e80bde77d3798fc (patch) | |
tree | 9b5e2bc25310d3acebbff26194ab71674d47586b | |
parent | ca06d8e30873095048df551807141835ec6e49bb (diff) | |
download | zsh-14ed1900875b6d15f13720379e80bde77d3798fc.tar.gz zsh-14ed1900875b6d15f13720379e80bde77d3798fc.tar.xz zsh-14ed1900875b6d15f13720379e80bde77d3798fc.zip |
allow - before first argument of tar
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_tar | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 2c440f6e9..431a4c8d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/Completion/Unix/Command/_tar b/Completion/Unix/Command/_tar index f24605b3c..2958b5957 100644 --- a/Completion/Unix/Command/_tar +++ b/Completion/Unix/Command/_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]' \ |