summaryrefslogtreecommitdiff
path: root/extra/source/bash-completion/fixup-sh-script-completions.diff
diff options
context:
space:
mode:
Diffstat (limited to 'extra/source/bash-completion/fixup-sh-script-completions.diff')
-rw-r--r--extra/source/bash-completion/fixup-sh-script-completions.diff15
1 files changed, 7 insertions, 8 deletions
diff --git a/extra/source/bash-completion/fixup-sh-script-completions.diff b/extra/source/bash-completion/fixup-sh-script-completions.diff
index 6f3447b8..2d745956 100644
--- a/extra/source/bash-completion/fixup-sh-script-completions.diff
+++ b/extra/source/bash-completion/fixup-sh-script-completions.diff
@@ -6,14 +6,13 @@ since stock bash without bash-completion does that already... --rworkman
Acked-by: volkerdi
-diff -Nur bash-completion-2.2.orig/completions/sh bash-completion-2.2/completions/sh
---- bash-completion-2.2.orig/completions/sh 2016-02-09 08:52:44.000000000 -0600
-+++ bash-completion-2.2/completions/sh 2016-03-06 00:43:49.744767271 -0600
+--- ./completions/sh.orig 2020-07-25 12:37:24.175001592 -0500
++++ ./completions/sh 2020-07-25 12:38:34.061003155 -0500
@@ -31,6 +31,6 @@
- [[ $args -eq 1 ]] && ext=sh
+ ((args == 1)) && ext="sh"
_filedir $ext
} &&
--complete -F _sh sh
-+complete -F _sh
-
- # ex: ts=4 sw=4 et filetype=sh
+- complete -F _sh sh
++ complete -F _sh
+
+ # ex: filetype=sh