Skip to content

Commit 4776578

Browse files
committed
Check the version of bash.
This change makes it explicit that Bash 3 isn't supported anymore.
1 parent e077918 commit 4776578

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bash-completion.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ returned."
357357
(bash-completion-send "complete -p" process)
358358
(process-put process 'complete-p
359359
(bash-completion-build-alist (bash-completion--get-buffer process)))
360+
(unless (zerop
361+
(bash-completion-send "[[ ${BASH_VERSINFO[0]} -ge 4 ]]" process))
362+
(error "bash-completion.el requires at least Bash 4."))
360363
(bash-completion-send
361364
(concat "function __emacs_complete_wrapper {"
362365
" COMP_TYPE=9; COMP_KEY=9; _EMACS_COMPOPT=\"\";"

0 commit comments

Comments
 (0)