From afeabd71be8a7140919da06da9eadf7b7ffb6ce4 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Thu, 7 Mar 2002 17:47:12 +0000 Subject: [PATCH] - add initial option support to _tar() --- bash_completion | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bash_completion b/bash_completion index c70fb2d8..89ccf366 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05a # -# $Id: bash_completion,v 1.184 2002/03/07 18:44:48 ianmacd Exp $ +# $Id: bash_completion,v 1.185 2002/03/07 18:47:12 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -1541,7 +1541,10 @@ _tar() COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} - [ $COMP_CWORD -eq 1 ] && return 0 + if [ $COMP_CWORD = 1 ]; then + COMPREPLY=( $( compgen -W 'c t x u r d A' -- $cur ) ) + return 0 + fi case "${COMP_WORDS[1]}" in c*f)