Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bash-completion: Do not use ls in completion
Users might set aliases for ls breaking the bash completion: ``` alias ls='ls -N --color=yes --time-style=long-iso' apport-bug <tab> ``` Shellcheck also complains about it: ``` shellcheck -S error -s bash data/bash-completion/{apport-bug,apport-collect,apport-unpack} In data/bash-completion/apport-bug line 8: for FILE in $(ls /usr/share/apport/symptoms); do ^-- SC2045 (error): Iterating over ls output is fragile. Use globs. For more information: https://www.shellcheck.net/wiki/SC2045 -- Iterating over ls output is fragi... ``` Ubuntu-Bug: https://launchpad.net/bugs/1850804 Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
- Loading branch information