[Bash-completion-devel] Bug#618734: bash: autocomplete fails with 'tar jcvf' and non .bz2 file

Jonathan Nieder jrnieder at gmail.com
Fri Mar 18 01:55:28 UTC 2011


clone 618734 -1
retitle 618734 bash completion: 'tar jcf <TAB>' should complete arbitrary filenames
severity 618734 minor
quit

Adam Nielsen wrote:

> Just for the record I can see the
> reasoning behind this behaviour, but I think it might be wrong when
> using the "c" option to create an archive.

There is definitely more going on than I thought --- 'tar cjf <TAB>'
does the Right Thing™ while 'tar jcf <TAB>' does not.  See
/etc/bash_completion.d/tar for details.  So this does look like a
genuine bug. :)

Let's file my side-suggestion separately.

Thanks for clarifying.
Jonathan





More information about the Bash-completion-devel mailing list