bash autocompletion affects paths to redirection
Summary
When element-path is set, then bash completion applies this path. Unfortunately it also applies to non parameters. For example stream redirections.
Steps to reproduce
With freedestkop-sdk:
mkdir my-logs
bst show --deps all bootstrap/bootstrap.bst >m
Then try to auto-complete to my-logs by pressing tab.
What is the current bug behavior?
It does not find my-logs, instead it proposes manifests/ or multiarch/ which are in elements.
What is the expected correct behavior?
It should auto-complete to my-logs.
Relevant logs and/or screenshots
Possible fixes
Other relevant information
- BuildStream version affected: /milestone %BuildStream_v1.x