anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / tools / misc / grub / fix-bash-completion.patch
blob97cecdce373fac0b82666660be5dc95772e52477
1 diff -ubr grub-2.00-orig/util/bash-completion.d/grub-completion.bash.in grub-2.00/util/bash-completion.d/grub-completion.bash.in
2 --- grub-2.00-orig/util/bash-completion.d/grub-completion.bash.in 2012-10-16 19:02:36.342733957 +0200
3 +++ grub-2.00/util/bash-completion.d/grub-completion.bash.in 2012-10-16 19:04:48.262733941 +0200
4 @@ -17,6 +17,12 @@
5 # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
6 # bash completion for grub
8 +have()
9 +{
10 + unset -v have
11 + _have $1 && have=yes
14 __grub_dir() {
15 local i c=1 boot_dir
17 @@ -479,6 +485,7 @@
18 have ${__grub_script_check_program} && \
19 complete -F _grub_script_check -o filenames ${__grub_script_check_program}
21 +unset -f have
23 # Local variables:
24 # mode: shell-script