bash completion not working properly when adding PATH="${PATH}:~/.local/bin"
Following error happens when adding PATH="${PATH}:~/.local/bin",
bst env: ‘bst’: No such file or directory
This issue dont happen if we use PATH="{PATH}:{HOME}/.local/bin"
steps to reproduce
- open ~/.bashrc in vi
- add
export PATH="${PATH}:~/.local/bin" - add
source "${HOME}/Devel/buildstream/buildstream/data/bst" - exit current shell.
- start new shell so that your ~/.bashrc changes will take effect
- type bst, press spacebar and press tab. you will get above mentioned error
I have attached fix which dont break bash completion even if user add ~/.local/bin instead of ${HOME}/.local/bin into $PATH variable fix-completion.patch