Summary: | bash-completion cannot complete `mount xyz` properly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | *nyamo* <korngerd> |
Component: | Current packages | Assignee: | Gentoo Shell Tools project <shell-tools> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | CC: | kenyon |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
*nyamo*
2005-07-10 23:02:44 UTC
Using --color=never is not a viable solution. What if grep is not GNU grep? I'm thinking more of closing this WONTFIX and updating the ebuild's pkg_postinst instructions to state that /etc/profile.d/bash-completion should be sourced *before* you declare anything else in ~/.bashrc, as there's no guarantee that any aliases you set wont be a) misused unintentionally as in this case, or b) re-set to something else by bash-completion (it does set some aliases under certain conditions). I am willing to listen to any alternative solutions you may have, however. (In reply to comment #1) > I'm thinking more of closing this WONTFIX and updating the ebuild's pkg_postinst > instructions to state that /etc/profile.d/bash-completion should be sourced > *before* you declare anything else in ~/.bashrc, as there's no guarantee that > any aliases you set wont be a) misused unintentionally as in this case, or b) > re-set to something else by bash-completion (it does set some aliases under > certain conditions). Actually, that might be a better solution to this :) A warning at the end would solve any other alias issues as well. I've updated the pkg_postinst of existing ebuilds, and made note of this bug, giving instructions that any aliases set should be done after sourcing /etc/profile.d/bash-completion. Might as well mark this FIXED, since that's the reasonable resolution. Just setting aliases after sourcing /etc/profile.d/bash-completion doesn't mean the alias will work. I can't get an alias of rm='rm -iv' when bash-completion has been sourced. (In reply to comment #4) > Just setting aliases after sourcing /etc/profile.d/bash-completion doesn't mean > the alias will work. I can't get an alias of rm='rm -iv' when bash-completion > has been sourced. Nevermind, I'm experiencing Bug 99540. Another solution or this would be to prefix grep with the bash "command" builtin, so that any aliases are ignored. This would always work, and one would not need to worry about the order of defining aliases. |