zsh-users
 help / color / mirror / code / Atom feed
* completion example
@ 2001-11-16 18:25 Jesper Holmberg
  2001-11-16 18:25 ` Clint Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Holmberg @ 2001-11-16 18:25 UTC (permalink / raw)
  To: Zsh-users List

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@enst-bretagne.fr   | one be warm |
ENST Br, BP 832, 29285 Brest, FRANCE | alone?"     |


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: completion example
  2001-11-16 18:25 completion example Jesper Holmberg
@ 2001-11-16 18:25 ` Clint Adams
  2001-11-16 18:51   ` Jesper Holmberg
  0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2001-11-16 18:25 UTC (permalink / raw)
  To: Zsh-users List

> 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?

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: completion example
  2001-11-16 18:25 ` Clint Adams
@ 2001-11-16 18:51   ` Jesper Holmberg
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Holmberg @ 2001-11-16 18:51 UTC (permalink / raw)
  To: Zsh-users List

Ah, thanks. I should've been able to figure that one out by myself,
shouldn't I.

Jesper

* On Fri Nov 16, Clint Adams wrote:
> compctl -j -P '%' + -s '`ps x | tail +2 | cut -c1-5`' + \
> 	-x 's[-] p[1]' -k "($signals[1,-3])" -- kill


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-16 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-16 18:25 completion example Jesper Holmberg
2001-11-16 18:25 ` Clint Adams
2001-11-16 18:51   ` Jesper Holmberg

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).