The previous fix would still match a use flag it it started with the
same characters.
This fixes it completely.
if [[ "${ACTIVE}" == "-" ]]; then
# If flag is masked, it should be added to package.mask, instead
# of package.use. For now, yield a warning and quit
- if [[ -n $(echo " ${ACTIVE_FLAGS[6]}" | grep " -${flag}") ]]; then
+ if [[ -n $(echo " ${ACTIVE_FLAGS[6]}" | grep " -${flag} ") ]]; then
error "USE flag \"$flag\" is masked. Enabling in package.use will" \
"\nbe ineffective. You may have an incorrect profile selected."
continue