W dniu 12.06.2020 o 22:23, Gabriel F. T. Gomes pisze:
On Fri, 12 Jun 2020, Sławomir Stańczak wrote:
W dniu 11.06.2020 o 21:41, Gabriel F. T. Gomes pisze:
If I understand correctly, you would like for 'tar -cf <TAB>' to
complete with tar files already present in the file system.
Yes. This prevents overwriting of an existing archive.
~~~~~~~~
I am a little puzzled. Have you changed your mind and now you think
that *not* completing is the right thing to do?
Not at all. ;) When I can use <TAB> I see the names of archives in a
directory, so overwriting of an existing archives is a little.
Thank you very much for your help and links.
Ah, I forgot to mention that you can always use Alt+/ to complete with
every file in the path, which will suggest *any* file, not just those
ending in '.tar*'. Anyhow, I thought that that might help you a little
before we can get this fixed (if we ever make it into upstream
bash-completion).
Thanks. I know about it.
Some days ago I replaced the file from Debian Linux 9.12:
ls -l /usr/share/bash-completion/completions/tar
-rw-r--r-- 1 root root 4170 Apr 12 2016
/usr/share/bash-completion/completions/tar
It works fine. :)
Cheers,
Sławomir