If I call "emerge -s gtk+" (and even 'gtk+' to ensure bash doesn't expand it in any way), the output is the same as for "emerge -s gtk", i.e. many results without the + in them. If I call "emerge -s gtk++", it produces no output and this traceback: laptop portage # emerge -s gtk++ Traceback (most recent call last): File "/usr/bin/emerge", line 1172, in ? searchinstance.execute() File "/usr/bin/emerge", line 150, in execute if re.search(self.searchkey.lower(), package_parts[1].lower()): File "/usr/lib/python2.2/sre.py", line 137, in search return _compile(pattern, flags).search(string) File "/usr/lib/python2.2/sre.py", line 228, in _compile raise error, v # invalid expression sre_constants.error: multiple repeat
Use \+ instead, as a literal "+" has a special meaning in a regular expression.