bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

long option support for tar broken with version 2.4

Open bitstreamout opened this issue 8 years ago • 4 comments

Try

tar --create --file test.tar <TAB>

does show only option but no files nor directories

tar --create -f test.tar -<TAB> -A -c -d -r -t -u -x

... the same for mixed options

tar --create -f test.tar <TAB> tar --create f test.tar <TAB>

bitstreamout avatar Dec 14 '16 11:12 bitstreamout

A patch x.txt

bitstreamout avatar Dec 14 '16 12:12 bitstreamout

@bitstreamout Could you file a pull request along with test case demonstrating the failure and the fix for this?

@praiskup FYI

scop avatar Dec 19 '16 14:12 scop

Marking those options as "mode" options looks like a correct fix. Thanks for the patch!

praiskup avatar Dec 19 '16 14:12 praiskup

The issue is still present. Even worse, when completing the word ./, it seems to produce the option names as filenames.

$ tar --create --file a.tar.gz ./[TAB]
./A  ./c  ./d  ./r  ./t  ./u  ./x

akinomyoga avatar May 13 '24 09:05 akinomyoga