zsh-workers
 help / color / mirror / code / Atom feed
From: Bruno Bonfils <asyd@debian-fr.org>
To: zsh-workers@sunsite.dk
Subject: read timeout argument || completion of a function
Date: Sun, 11 Aug 2002 22:54:08 +0200	[thread overview]
Message-ID: <87znvt15hr.fsf@julie.debian-fr.org> (raw)

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


             reply	other threads:[~2002-08-11 20:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-11 20:54 Bruno Bonfils [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87znvt15hr.fsf@julie.debian-fr.org \
    --to=asyd@debian-fr.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).