From 14ed1900875b6d15f13720379e80bde77d3798fc Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 10 Oct 2006 22:38:40 +0000 Subject: allow - before first argument of tar --- Completion/Unix/Command/_tar | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Completion/Unix/Command/_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]' \ -- cgit 1.4.1