Bash-completion e file "tar.xz"
Inviato: ven 3 set 2010, 14:58
Non so se qualcuno di voi usa bash-completion, comunque vi propongo una patch per far riconoscere correttamente i file "tar.xz" al comando "tar":
Per applicare la patch dovete eseguire:
NOTA: la patch รจ per bash-completion 1.1; nelle versioni successive questo bug sembra essere stato fixato.
Codice: Seleziona tutto
--- a/tar 2010-09-03 14:43:54.159421877 +0200
+++ b/tar 2010-09-03 14:40:50.522840422 +0200
@@ -19,7 +19,7 @@
return 0
;;
+([^IZzJjy])f)
- ext='t@(ar?(.@(Z|gz|bz?(2)|lz?(ma)))|gz|bz?(2)|lz?(ma))'
+ ext='t@(ar?(.@(Z|gz|bz?(2)|lz?(ma)|xz))|gz|bz?(2)|lz?(ma)|xz)'
regex='t\(ar\(\.\(Z\|gz\|bz2\?\|lzma\|xz\)\)\?\|gz\|bz2\?\|lzma\|xz\)'
;;
*[Zz]*f)Codice: Seleziona tutto
#cd /etc/bash_completion.d
#patch -p1 -i /path/to/patch/bash-completion_tar.patchNOTA: la patch รจ per bash-completion 1.1; nelle versioni successive questo bug sembra essere stato fixato.