summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-11-17 23:30:51 -0200
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-11-17 23:30:51 -0200
commit1db74fced769007c97c65c71da7ba32d6413bfe6 (patch)
treec5e2d29810a8f387e42f777b96c111e4ed94da4c /debian/patches
parent77ed63519ff5631475a496af1c536d8484a613f6 (diff)
downloadbash-completion-1db74fced769007c97c65c71da7ba32d6413bfe6.tar.gz
Update patch for tar zstd completion (bug #913949)
Upstream noticed a missing piece in the patch added by the commit: commit 77ed63519ff5631475a496af1c536d8484a613f6 Author: Gabriel F. T. Gomes <gabriel@inconstante.eti.br> Date: Sat Nov 17 12:43:47 2018 -0200 Add support for tar zstd completion (bug #913949) This commit updates the patch. Thanks to Ville Skyttä for the review [1]. [1] https://github.com/scop/bash-completion/pull/255#pullrequestreview-176067588
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/12-tar-support-completions-for-zstd-compression.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/debian/patches/12-tar-support-completions-for-zstd-compression.patch b/debian/patches/12-tar-support-completions-for-zstd-compression.patch
index d5055bc4..d81f0ebd 100644
--- a/debian/patches/12-tar-support-completions-for-zstd-compression.patch
+++ b/debian/patches/12-tar-support-completions-for-zstd-compression.patch
@@ -11,13 +11,13 @@ extensions.
This is the output of the completions after the patch:
- $ ls
+ $ ls[ENTER]
bla.gem.gz bla.invalid.gz bla.spkg.gz bla.tar.gz bla.tgz
bla.gem.zst bla.invalid.zst bla.spkg.zst bla.tar.zst bla.tzst
- $ tar -tf bla.
+ $ tar -tf bla.[TAB]
bla.gem.gz bla.spkg.gz bla.tar.gz bla.tgz
bla.gem.zst bla.spkg.zst bla.tar.zst bla.tzst
- $ tar -ztf bla.
+ $ tar -ztf bla.[TAB]
bla.gem.gz bla.spkg.gz bla.tar.gz bla.tgz
Since tar does not provide a one-character shortcut for zstd
@@ -37,7 +37,7 @@ The request came from Adam Borowski via a Debian bug [2].
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/completions/tar b/completions/tar
-index 49265ad4..4f20d2e2 100644
+index 49265ad4..f6983d50 100644
--- a/completions/tar
+++ b/completions/tar
@@ -433,9 +433,9 @@ __tar_cleanup_prev()
@@ -48,7 +48,7 @@ index 49265ad4..4f20d2e2 100644
+ local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst))'
ext="$tars"
- regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[bgx]z\|bz2\|lz\(ma\|o\)\?\)\)\?\|t\([abglx]z\|bz\?2\)\)'
-+ regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[bgx]z\|bz2\|lz\(ma\|o\)\?\|zst\)\)\?\|t\([abglx]z\|bz\?2\)\)'
++ regex='\(\(tar\|gem\|spkg\)\(\.\(Z\|[bgx]z\|bz2\|lz\(ma\|o\)\?\|zst\)\)\?\|t\([abglx]z\|bz\?2\|zst\)\)'
case "$tar_mode_arg" in
--*)