From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7072 invoked from network); 11 Aug 2002 20:54:42 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Aug 2002 20:54:42 -0000 Received: (qmail 14903 invoked by alias); 11 Aug 2002 20:54:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17527 Received: (qmail 14892 invoked from network); 11 Aug 2002 20:54:33 -0000 From: Bruno Bonfils To: zsh-workers@sunsite.dk Subject: read timeout argument || completion of a function X-PGP-Fingerprint: F0DD DCA9 7B47 C51E C87A 857A F1D8 F87F F39D CCF5 Organization: Debian-Fr - http://www.debian-fr.org/ X-Face: @o?J05xY44=HO!,Yn~AiA7VC&~_D&T-,`h"mBykC}@-eyfLM"fE&Tq~,B{12{%?rR"ZbPbP QkZW~$a.;iSJKSeCkD++N}*_{xxCX_'./pId)1%"oem]sd9tc, "{") Date: Sun, 11 Aug 2002 22:54:08 +0200 Message-ID: <87znvt15hr.fsf@julie.debian-fr.org> User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 provide file completion, and _myping hosts completion. Thank you very much. -- Bruno Bonfils