linux - Bash completion programming , '@' is always removed in completion string -


I am completing a bass for Gentoo, which searches for packages, sets (Portes 2.2 new feature) But one problem I found when I'm using the following command:

emerged @ pay

and I should get @ protected-libs, but Bash turns it in:

emerge pres

The first thought was that there would be a problem with my script "emerge-finder.pl", so I again Checked and this The script gave the correct output.

And next I checked the Bash script:

  _portage_cmd () {COMPREPLY = (`~ / scripts / emerge-finder.pl $ {COMP_WORDS COMPPLY} before line [COMP_CWORD]} `}} full-width _portage_cmd em   

and I put" echo $ {COMP_WORDS [COMP_CWORD}} ", and the" @ "character has no output, wired .

How can I remove my "@" from Bash? thanks a lot!

Can help quote or avoid ...

So cited:

  emerged '@pace'   

or by avoiding:

  emerged @ send    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -