pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.32k stars 365 forks source link

bash completion: old method doesn't wrok with Bash 4.2.46(2)-release #841

Open abettati opened 2 years ago

abettati commented 2 years ago

Trying to source bash.completion gives:

─▪  source bash.completion 
bash: bash.completion: line 4: syntax error near unexpected token `{{'
bash: bash.completion: line 4: `complete{binary}() {{'

Bash version:

─▪ bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

Stumbled across this old method looking on google, new approach here (v1.6).

Ackleberry commented 1 year ago

Having the same issue here.

bash: /invoke: line 4: syntax error near unexpected token `{{'
bash: /invoke: line 4: `_complete_{binary}() {{'

$ bash --version
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)