Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72843 - zsh completion for tar for zst archives

Attached to Project: Arch Linux
Opened by Peter (pkap) - Friday, 26 November 2021, 11:02 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 02 December 2021, 19:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

tar.zst archives are skipped by zsh completion using tar/bsdar. This is seems to be fixed in zsh master, though. Maybe this would be appropriate to patch as tar.zst archives are all over and lots of people use zsh.

Example: $ bsdtar -tf linux<tab> # tar.zst files are skipped completely


diff --unified --recursive --text --color zsh-5.8.old/Completion/Unix/Type/_tar_archive zsh-5.8/Completion/Unix/Type/_tar_archive
--- zsh-5.8.old/Completion/Unix/Type/_tar_archive 2018-06-24 02:14:58.000000000 +0200
+++ zsh-5.8/Completion/Unix/Type/_tar_archive 2021-11-26 11:59:24.920675646 +0100
@@ -21,7 +21,7 @@
elif [[ "$1" = *J* ]]; then
_files "$expl[@]" -g '*.(tar|TAR).(lzma|xz)(-.)'
elif [[ "$_cmd_variant[$service]" == (gnu|libarchive) ]]; then
- _files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|.lzma|.xz|)|(tbz|tgz|txz))(-.)'
+ _files "$expl[@]" -g '*.((tar|TAR)(.gz|.GZ|.Z|.bz2|.lzma|.xz|.zst)|(tbz|tgz|txz|tzst))(-.)'
else
_files "$expl[@]" -g '*.(tar|TAR)(-.)'
fi
This task depends upon

Loading...