bash completion fails if user has a "grep" alias that produces unexpected output formatting #1521
Labels
category: misc > misc
P3
We're not considering working on this, but happy to review a PR. (No assignee)
type: bug
Milestone
Example:
alias grep="grep -P"
This could be avoided by using absolute paths for grep (and possibly other commands) or by protecting the relevant parts of the completion with "shopt -u expand_aliases" while executing the expansions.
I haven't done too much research yet, but this probably mostly affects
bazel-complete-template.bash lines 229 320 360 405 but probably not 190.
I'd suggest to just replace all occurrences of "grep" with /bin/grep (and probably do the same for sed)
The text was updated successfully, but these errors were encountered: