From d44d33d4ac9389854b046ca0270c112693b309e6 Mon Sep 17 00:00:00 2001 From: Max <4649120+maximehk@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:49:58 +0100 Subject: [PATCH] Fix missing `$` sign in bash completion (#472) Related issue https://github.com/google/python-fire/issues/64 Co-authored-by: Max Hacker --- fire/completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fire/completion.py b/fire/completion.py index 9659ec6a..4393880d 100644 --- a/fire/completion.py +++ b/fire/completion.py @@ -104,7 +104,7 @@ def _BashScript(name, commands, default_options=None): option_already_entered() {{ local opt - for opt in ${{COMP_WORDS[@]:0:COMP_CWORD}} + for opt in ${{COMP_WORDS[@]:0:$COMP_CWORD}} do if [ $1 == $opt ]; then return 0