On 2011-12-20 17:53, Igor Murzov wrote: >> + cc --version 2>/dev/null | grep -q GCC && complete -F _gcc cc || : >> + c++ --version 2>/dev/null | grep -q GCC && complete -F _gcc c++ || : > > What does "|| :" part mean? I can't find an explanation :)
Effectively the same as "|| true", but a more common expression for it. Just a way to force the compound command to always succeed. The point is that we want to avoid non-zero return values for optional things at end up completion files when loading them (see _completion_loader). _______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel