branch: elpa/bash-completion
commit 747920fdbf969dfea68237e6ccf6f87d0d24218c
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>
Avoid having to set BASH_COMPLETION.
In Bash 5, BASH_COMPLETION is a read-only variable.
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 82c52eed57..43c9d52791 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CASK ?= cask
EMACS ?= emacs
BASH ?= bash
-BASH_COMPLETION ?= /etc/bash_completion
+BASH_COMPLETION_RC ?= /etc/bash_completion
setup_bash=test/.set-bash-prog.el
@@ -37,6 +37,6 @@ clean-elc:
setup_bash:
@echo '(setq bash-completion-prog "${BASH}")' >$(setup_bash)
- @echo '(setq bash-completion_test-setup-completion
"${BASH_COMPLETION}")' >>$(setup_bash)
+ @echo '(setq bash-completion_test-setup-completion
"${BASH_COMPLETION_RC}")' >>$(setup_bash)
.PHONY: setup_bash