For dynamic bash completion, instead of using the legacy
/etc/bash_completiond.d, the current bash-completion can use a
dynamic mechanism in which the customized completion is called
upon completion activation.
The new location that is already pointed by the .bashrc file,
also engaged by the /etc/bash_completion, is
/usr/share/bash-completion/completions.
However, the bash file was placed under a subfolder with the
name of the command which is not necessary since the file already
contains the command name.
Also, the proper file name shall contain .bash extension.
Closes-Bug: 2001553
Test Plan:
PASS: Build python-fmclient package.
PASS: Build Debian image and install it successfully.
Verify fm.bash is installed under /usr/share/bash-completion/completions
PASS: Verify bash completion is working as expected:
Reviewed: https:/ /review. opendev. org/c/starlingx /fault/ +/869102 /opendev. org/starlingx/ fault/commit/ ca8be6b86611742 68a597e78e422d9 7e03a9f36b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit ca8be6b86611742 68a597e78e422d9 7e03a9f36b
Author: Enzo Candotti <email address hidden>
Date: Tue Jan 3 15:32:29 2023 -0300
Fix fm command bash dynamic completion
For dynamic bash completion, instead of using the legacy bash_completion d.d, the current bash-completion can use a completion, is share/bash- completion/ completions.
/etc/
dynamic mechanism in which the customized completion is called
upon completion activation.
The new location that is already pointed by the .bashrc file,
also engaged by the /etc/bash_
/usr/
However, the bash file was placed under a subfolder with the
name of the command which is not necessary since the file already
contains the command name.
Also, the proper file name shall contain .bash extension.
Closes-Bug: 2001553
Test Plan: bash-completion /completions
PASS: Build python-fmclient package.
PASS: Build Debian image and install it successfully.
Verify fm.bash is installed under /usr/share/
PASS: Verify bash completion is working as expected:
Signed-off-by: Enzo Candotti <email address hidden> b98d7555e48e0bf 5ea01c630d3
Change-Id: I3b796d26633459