Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

completion example



Hi all,

I found this in one of the example-files:

compctl -j -P '%' + -s '`ps -x | tail +2 | cut -c1-5`' + \
	-x 's[-] p[1]' -k "($signals[1,-3])" -- kill

If I try to use it, wanting to kill a certain PID, say 238, I hit
"kill 2[tab]", and get the following output:

kill 2Bad syntax, perhaps a bogus '-'?
38

Now, the funny thing is this actually works; process 238 will be killed if
I hit return. But how do I get rid of the error message?

TIA

Jesper
	
-- 
          Jesper Holmberg            |"But how can |
  jesper.holmberg@xxxxxxxxxxxxxxxx   | one be warm |
ENST Br, BP 832, 29285 Brest, FRANCE | alone?"     |



Messages sorted by: Reverse Date, Date, Thread, Author