bash-completion
bash-completion copied to clipboard
long option support for tar broken with version 2.4
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>
A patch x.txt
@bitstreamout Could you file a pull request along with test case demonstrating the failure and the fix for this?
@praiskup FYI
Marking those options as "mode" options looks like a correct fix. Thanks for the patch!
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