summaryrefslogtreecommitdiffstats
path: root/debian/patches/15-find-exec.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:24:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:24:28 +0000
commit2e7b40c11f44d02bd96eaef714a55c9198d680d8 (patch)
treeb8591f10d3f43153a5d2245a997c2a956c85f709 /debian/patches/15-find-exec.patch
parentAdding upstream version 1:2.11. (diff)
downloadbash-completion-2e7b40c11f44d02bd96eaef714a55c9198d680d8.tar.xz
bash-completion-2e7b40c11f44d02bd96eaef714a55c9198d680d8.zip
Adding debian version 1:2.11-8.debian/1%2.11-8
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/15-find-exec.patch')
-rw-r--r--debian/patches/15-find-exec.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/15-find-exec.patch b/debian/patches/15-find-exec.patch
new file mode 100644
index 0000000..fcb963e
--- /dev/null
+++ b/debian/patches/15-find-exec.patch
@@ -0,0 +1,20 @@
+commit f1ddf810e4ee6693acb9fab1be1794586aa111a0
+Author: Ville Skyttä <ville.skytta@iki.fi>
+Date: Sat Mar 20 10:41:04 2021 +0200
+
+ fix(find): don't look for -exec etc command if completing before it
+
+ Closes https://github.com/scop/bash-completion/issues/509
+
+diff --git a/completions/find b/completions/find
+index 64121eda..f18c7d7e 100644
+--- a/completions/find
++++ b/completions/find
+@@ -10,6 +10,7 @@ _find()
+ local i
+ for i in ${!words[*]}; do
+ if [[ ${words[i]} == -@(exec|ok)?(dir) ]]; then
++ ((cword > i)) || break
+ _command_offset $((i + 1))
+ return
+ fi