zsh-workers
 help / color / mirror / code / Atom feed
* read timeout argument || completion of a function
@ 2002-08-11 20:54 Bruno Bonfils
  2002-08-12  5:45 ` Bart Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Bruno Bonfils @ 2002-08-11 20:54 UTC (permalink / raw)
  To: zsh-workers

Hi all,

i'm very surprised to observe there isn't timeout argument for read
builtin function. I've looked for this problem in mailing list
archives and just found one mail who say to use expect. Don't sure
it's the solution for just ask yes/no (with -q argument)

Do you think add this features ? Maybe i can try to look for myself in
the source, but i'm afraid it's too difficult for me.

Moreover, i'm looking the way for provide completion for a function :

for example :

myping () {
       ping $1
}

First of all, i want to be sure i _can't_ define the default
completion tag with zstyle for a command which don't have
_command completion function (default tag called is _files isn't it
?). 

I have also try to write a just little function _myping which contains 

#compdef myping

_arguments '*:hostname:_hosts'

but myping <tab> provide file completion, and _myping <tab> hosts
completion.

Thank you very much.

-- 
Bruno Bonfils


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

end of thread, other threads:[~2002-08-12 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-11 20:54 read timeout argument || completion of a function Bruno Bonfils
2002-08-12  5:45 ` Bart Schaefer
2002-08-12 10:43   ` Bruno Bonfils
2002-08-12 11:13     ` Oliver Kiddle
2002-08-12 11:41       ` Peter Stephenson
2002-08-12 15:12         ` Bart Schaefer
2002-08-12 15:21     ` Bart Schaefer

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).